PDA

View Full Version : My program crashes at glTexImage3DEXT



TracoBata
12-21-2008, 10:06 AM
Hi All,
i have a C++ application that uses GLUT .. this application reads volume data from a file and display it
i'd like to get rid of the GLUT and work under MFC
The old program proceeds as following:
---------------------------------------
->create window using GLUT
->check if GL_EXT_texture3D Extention is supported
->init texture
->Draw
.
.
------------------------------------------------
now [after working under MFC] the program crashes
at calling glTexImage3DEXT

any idea about what may cause that error?

ZbuffeR
12-21-2008, 11:42 AM
Make sure function pointer of glTexImage3DEXT is not null.
Make sure the data array you pass has the good size, changes in default alignement may make it work in one case and not the other.