summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-04-04 15:10:39 +0200
committerraysan5 <[email protected]>2021-04-04 15:10:39 +0200
commit14aa29d18b8d1ab0c750e9f1f721e312c78ad659 (patch)
tree014333aa73cd724cff7726926f8f76ee880fef39 /src
parent4c9d2e719ef3a0d1c9c03ca30d6d06d4a85f7d1f (diff)
downloadraylib-14aa29d18b8d1ab0c750e9f1f721e312c78ad659.tar.gz
raylib-14aa29d18b8d1ab0c750e9f1f721e312c78ad659.zip
Update rlgl.h
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 2dcbf615..40e451a1 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -3578,6 +3578,7 @@ void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left)
// Load and draw a 1x1 XY quad in NDC
void rlLoadDrawQuad(void)
{
+#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
unsigned int quadVAO = 0;
unsigned int quadVBO = 0;
@@ -3612,11 +3613,13 @@ void rlLoadDrawQuad(void)
// Delete buffers (VBO and VAO)
glDeleteBuffers(1, &quadVBO);
glDeleteVertexArrays(1, &quadVAO);
+#endif
}
// Load and draw a 1x1 3D cube in NDC
void rlLoadDrawCube(void)
{
+#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
unsigned int cubeVAO = 0;
unsigned int cubeVBO = 0;
@@ -3688,6 +3691,7 @@ void rlLoadDrawCube(void)
// Delete VBO and VAO
glDeleteBuffers(1, &cubeVBO);
glDeleteVertexArrays(1, &cubeVAO);
+#endif
}
//----------------------------------------------------------------------------------