mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-21 10:48:15 +00:00
Some code tweaks for consistency
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user