Corrected possible issue on FBO creation
USE_DEPTH_RENDERBUFFER on OpenGL 2.1
This commit is contained in:
parent
4fe8e05a7f
commit
2f024dbfef
1 changed files with 3 additions and 3 deletions
|
@ -1586,10 +1586,10 @@ RenderTexture2D rlLoadRenderTexture(int width, int height)
|
||||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
|
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
|
||||||
glBindTexture(GL_TEXTURE_2D, 0);
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
|
|
||||||
#if defined(GRAPHICS_API_OPENGL_33)
|
#if defined(GRAPHICS_API_OPENGL_21) || defined(GRAPHICS_API_OPENGL_ES2)
|
||||||
#define USE_DEPTH_TEXTURE
|
|
||||||
#else
|
|
||||||
#define USE_DEPTH_RENDERBUFFER
|
#define USE_DEPTH_RENDERBUFFER
|
||||||
|
#else
|
||||||
|
#define USE_DEPTH_TEXTURE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_DEPTH_RENDERBUFFER)
|
#if defined(USE_DEPTH_RENDERBUFFER)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue