diff options
| author | Ray <[email protected]> | 2021-05-22 16:54:04 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-05-22 16:54:04 +0200 |
| commit | 03710c9d8ea5acb04445ce3d125b58da043df6ed (patch) | |
| tree | 6e695068b1f5e34972dbb1b2196540007c5d49ca /src/rlgl.h | |
| parent | cb698dd37db805a7d33445c22d6077fc35cf288d (diff) | |
| download | raylib-03710c9d8ea5acb04445ce3d125b58da043df6ed.tar.gz raylib-03710c9d8ea5acb04445ce3d125b58da043df6ed.zip | |
Some code tweaks for consistency
Diffstat (limited to 'src/rlgl.h')
| -rw-r--r-- | src/rlgl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++) { |
