Explorar o código

Update rlgl.h

raysan5 %!s(int64=4) %!d(string=hai) anos
pai
achega
14aa29d18b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/rlgl.h

+ 4 - 0
src/rlgl.h

@@ -3578,6 +3578,7 @@ void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left)
 // Load and draw a 1x1 XY quad in NDC
 // Load and draw a 1x1 XY quad in NDC
 void rlLoadDrawQuad(void)
 void rlLoadDrawQuad(void)
 {
 {
+#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
     unsigned int quadVAO = 0;
     unsigned int quadVAO = 0;
     unsigned int quadVBO = 0;
     unsigned int quadVBO = 0;
 
 
@@ -3612,11 +3613,13 @@ void rlLoadDrawQuad(void)
     // Delete buffers (VBO and VAO)
     // Delete buffers (VBO and VAO)
     glDeleteBuffers(1, &quadVBO);
     glDeleteBuffers(1, &quadVBO);
     glDeleteVertexArrays(1, &quadVAO);
     glDeleteVertexArrays(1, &quadVAO);
+#endif
 }
 }
 
 
 // Load and draw a 1x1 3D cube in NDC
 // Load and draw a 1x1 3D cube in NDC
 void rlLoadDrawCube(void)
 void rlLoadDrawCube(void)
 {
 {
+#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
     unsigned int cubeVAO = 0;
     unsigned int cubeVAO = 0;
     unsigned int cubeVBO = 0;
     unsigned int cubeVBO = 0;
 
 
@@ -3688,6 +3691,7 @@ void rlLoadDrawCube(void)
     // Delete VBO and VAO
     // Delete VBO and VAO
     glDeleteBuffers(1, &cubeVBO);
     glDeleteBuffers(1, &cubeVBO);
     glDeleteVertexArrays(1, &cubeVAO);
     glDeleteVertexArrays(1, &cubeVAO);
+#endif
 }
 }
 
 
 //----------------------------------------------------------------------------------
 //----------------------------------------------------------------------------------