求助
我在运行texture3d.c程序时,运行到
glTexImage3D(GL_TEXTURE_3D, 0, GL_RGB, iWidth, iHeight, iDepth, 0, GL_RGB, GL_UNSIGNED_BYTE, image);
时出现这个错误:
Unhandled exception at 0x00000000 in redbook.exe: 0xC0000005: Access violation reading location 0x00000000.
有人知道是为什么么?附:这个程序是官方网的源程序。