mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-22 11:18:15 +00:00
REVIEWED: GetTextureData(), allow retrieving 32bit float data
This commit is contained in:
@@ -2944,7 +2944,7 @@ void *rlReadTexturePixels(Texture2D texture)
|
||||
|
||||
if ((glInternalFormat != -1) && (texture.format < COMPRESSED_DXT1_RGB))
|
||||
{
|
||||
pixels = (unsigned char *)RL_MALLOC(size);
|
||||
pixels = RL_MALLOC(size);
|
||||
glGetTexImage(GL_TEXTURE_2D, 0, glFormat, glType, pixels);
|
||||
}
|
||||
else TRACELOG(LOG_WARNING, "TEXTURE: [ID %i] Data retrieval not suported for pixel format (%i)", texture.id, texture.format);
|
||||
|
Reference in New Issue
Block a user