Page MenuHome

image.gl_load() consistently segfault at gluBuild2DMipmaps
Closed, ResolvedPublic

Description

How to test it: [no sample file, but please follow the steps]

1) load an image
2) bpy.data.images[0].gl_load() # in the console
*** that may crash the system already if not:
3) load another image
4) bpy.data.images[1].gl_load() # in the console
*** that should be enough to crash things

I get consistent crashes in both OSX 10.7 - ATI Radeon and Linux Ubuntu with NVidia Quadro 5000 (always with homemade builds)
Blender 2.63 rc1

The only way of avoiding the crash is doing:
bgl_load(bgl.GL_NEAREST) # (or GL_LINEAR)

That avoids the call for the gluBuild2DMipMaps in rna_image_api.c

Thanks,
Dalai

Details

Type
Bug