Parcourir la source

Tweak for OpenGL 2.1

Why am I still supporting this???
pull/676/head
Ray il y a 6 ans
Parent
révision
bd383fe219
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. +3
    -3
      src/rlgl.h

+ 3
- 3
src/rlgl.h Voir le fichier

@ -1509,7 +1509,7 @@ void rlDeleteRenderTextures(RenderTexture2D target)
if (target.texture.id > 0) glDeleteTextures(1, &target.texture.id);
if (target.depth.id > 0)
{
#if defined(GRAPHICS_API_OPENGL_ES2)
#if defined(GRAPHICS_API_OPENGL_21) || defined(GRAPHICS_API_OPENGL_ES2)
glDeleteRenderbuffers(1, &target.depth.id);
#elif defined(GRAPHICS_API_OPENGL_33)
glDeleteTextures(1, &target.depth.id);
@ -2262,9 +2262,9 @@ RenderTexture2D rlLoadRenderTexture(int width, int height)
if (target.texture.id > 0) glDeleteTextures(1, &target.texture.id);
if (target.depth.id > 0)
{
#if defined(GRAPHICS_API_OPENGL_ES2)
#if defined(USE_DEPTH_RENDERBUFFER)
glDeleteRenderbuffers(1, &target.depth.id);
#elif defined(GRAPHICS_API_OPENGL_33)
#elif defined(USE_DEPTH_TEXTURE)
glDeleteTextures(1, &target.depth.id);
#endif
}

Chargement…
Annuler
Enregistrer