From Mourad Boufarguine, "When compiling the example on VS9, the compiler complain about undefined GL_DEPTH_COMPONENT32F and GL_DEPTH_COMPONENT32F_NV. So I added them to include/osg/FrameBufferObject. The example builds fine and is working for me without crashs unless it is ran whithout argument. I added couple of lines to check for arguments number and print the example usage when needed."
This commit is contained in:
@@ -118,6 +118,14 @@
|
||||
#define GL_DEPTH_COMPONENT32 0x81A7
|
||||
#endif
|
||||
|
||||
#ifndef GL_DEPTH_COMPONENT32F
|
||||
#define GL_DEPTH_COMPONENT32F 0x8CAC
|
||||
#endif
|
||||
|
||||
#ifndef GL_DEPTH_COMPONENT32F_NV
|
||||
#define GL_DEPTH_COMPONENT32F_NV 0x8DAB
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_packed_depth_stencil
|
||||
#define GL_EXT_packed_depth_stencil 1
|
||||
#define GL_DEPTH_STENCIL_EXT 0x84F9
|
||||
|
||||
Reference in New Issue
Block a user