diff options
| author | Ray <raysan5@gmail.com> | 2015-11-09 13:13:26 +0100 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2015-11-09 13:13:26 +0100 |
| commit | a6f5a0339a00840c62c0cb0519d0f8482114bd54 (patch) | |
| tree | d43b1bf312da900df38d682c87e206c62364cb1a /src | |
| parent | c17c1ccaea53a9591ddc0e57fb55644904e0d49e (diff) | |
| download | raylib-a6f5a0339a00840c62c0cb0519d0f8482114bd54.tar.gz raylib-a6f5a0339a00840c62c0cb0519d0f8482114bd54.zip | |
Corrected bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2105,7 +2105,7 @@ void *rlglReadTexturePixels(Texture2D texture) // NOTE: GL_LUMINANCE and GL_LUMINANCE_ALPHA are removed since OpenGL 3.1 // Must be replaced by GL_RED and GL_RG on Core OpenGL 3.3 - switch (format) + switch (texture.format) { #if defined(GRAPHICS_API_OPENGL_11) case UNCOMPRESSED_GRAYSCALE: pixels = (unsigned char *)malloc(size); glFormat = GL_LUMINANCE; glType = GL_UNSIGNED_BYTE; break; // 8 bit per pixel (no alpha) |
