filename | src/pvr2/glutil.h |
changeset | 1222:a4545699a82b |
prev | 1219:3966d3e55351 |
next | 1223:61684ca88599 |
author | nkeynes |
date | Wed Feb 15 17:54:51 2012 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Use GL_TEXTURE_2D instead of GL_TEXTURE_RECTANGLE_ARB for frame buffers, for systems that don't provide the latter (and there's not really much difference anyway). Add macro wrangling for GL_DEPTH24_STENCIL8 format |
file | annotate | diff | log | raw |
1.1 --- a/src/pvr2/glutil.h Mon Feb 13 21:43:22 2012 +10001.2 +++ b/src/pvr2/glutil.h Wed Feb 15 17:54:51 2012 +10001.3 @@ -89,6 +89,14 @@1.4 #define GL_DEPTH_ATTACHMENT GL_DEPTH_ATTACHMENT_EXT1.5 #endif1.7 +#ifndef GL_DEPTH24_STENCIL81.8 +#if defined(GL_DEPTH24_STENCIL8_EXT)1.9 +#define GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_EXT1.10 +#elif defined(GL_DEPTH24_STENCIL8_OES)1.11 +#define GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_OES1.12 +#endif1.13 +#endif1.14 +1.15 #if defined(GL_FRAMEBUFFER_COMPLETE_EXT) && !defined(GL_FRAMEBUFFER_COMPLETE)1.16 #define GL_FRAMEBUFFER_COMPLETE GL_FRAMEBUFFER_COMPLETE_EXT1.17 #endif
.