summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorRay <[email protected]>2021-05-22 16:54:04 +0200
committerRay <[email protected]>2021-05-22 16:54:04 +0200
commit03710c9d8ea5acb04445ce3d125b58da043df6ed (patch)
tree6e695068b1f5e34972dbb1b2196540007c5d49ca /src/rlgl.h
parentcb698dd37db805a7d33445c22d6077fc35cf288d (diff)
downloadraylib-03710c9d8ea5acb04445ce3d125b58da043df6ed.tar.gz
raylib-03710c9d8ea5acb04445ce3d125b58da043df6ed.zip
Some code tweaks for consistency
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index c60a2a70..a40c8047 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -1685,7 +1685,7 @@ void rlLoadExtensions(void *loader)
#if defined(SUPPORT_GL_DETAILS_INFO)
// Get supported extensions list
// WARNING: glGetStringi() not available on OpenGL 2.1
- char **extList = RL_MALLOC(sizeof(char *)*numExt);
+ char **extList = RL_MALLOC(numExt*sizeof(char *));
TRACELOG(LOG_INFO, "GL: OpenGL extensions:");
for (int i = 0; i < numExt; i++)
{
@@ -1966,7 +1966,7 @@ RenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements)
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
// Initialize CPU (RAM) vertex buffers (position, texcoord, color data and indexes)
//--------------------------------------------------------------------------------------------
- batch.vertexBuffer = (VertexBuffer *)RL_MALLOC(sizeof(VertexBuffer)*numBuffers);
+ batch.vertexBuffer = (VertexBuffer *)RL_MALLOC(numBuffers*sizeof(VertexBuffer));
for (int i = 0; i < numBuffers; i++)
{