diff options
| author | Ray <[email protected]> | 2018-04-02 18:10:38 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-04-02 18:10:38 +0200 |
| commit | 3e0de314244fa943d1944bb92901043279b0a03e (patch) | |
| tree | ae36ed7cbb10904be2acaa798177206accb2f132 /src/rlgl.c | |
| parent | befd363966307068ed8a6709b6db6204a84a3531 (diff) | |
| parent | 201007e426816eea145c6ed516165d8a10fc4301 (diff) | |
| download | raylib-3e0de314244fa943d1944bb92901043279b0a03e.tar.gz raylib-3e0de314244fa943d1944bb92901043279b0a03e.zip | |
Merge pull request #504 from Martinfx/master
Fix potential bugs from static analysis
Diffstat (limited to 'src/rlgl.c')
| -rw-r--r-- | src/rlgl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3373,9 +3373,9 @@ static void LoadBuffersDefault(void) quads.texcoords = (float *)malloc(sizeof(float)*2*4*MAX_QUADS_BATCH); // 2 float by texcoord, 4 texcoord by quad quads.colors = (unsigned char *)malloc(sizeof(unsigned char)*4*4*MAX_QUADS_BATCH); // 4 float by color, 4 colors by quad #if defined(GRAPHICS_API_OPENGL_33) - quads.indices = (unsigned int *)malloc(sizeof(int)*6*MAX_QUADS_BATCH); // 6 int by quad (indices) + quads.indices = (unsigned int *)malloc(sizeof(unsigned int)*6*MAX_QUADS_BATCH); // 6 int by quad (indices) #elif defined(GRAPHICS_API_OPENGL_ES2) - quads.indices = (unsigned short *)malloc(sizeof(short)*6*MAX_QUADS_BATCH); // 6 int by quad (indices) + quads.indices = (unsigned short *)malloc(sizeof(unsigned short)*6*MAX_QUADS_BATCH); // 6 int by quad (indices) #endif for (int i = 0; i < (3*4*MAX_QUADS_BATCH); i++) quads.vertices[i] = 0.0f; |
