summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2021-11-15 10:25:24 +0100
committerRay <[email protected]>2021-11-15 10:25:24 +0100
commitb7bf22059875417be1b42c3e39e234d28f71fc11 (patch)
tree7ca5220ed5f67906bccfc22d65a0b04e897001ce
parented125f27b01053dfd814a0d847ce7534c0a3ea8d (diff)
downloadraylib-b7bf22059875417be1b42c3e39e234d28f71fc11.tar.gz
raylib-b7bf22059875417be1b42c3e39e234d28f71fc11.zip
REVIEWED: rlUpdateTexture()
-rw-r--r--src/rlgl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index d37d45fd..2ef923ea 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -2965,7 +2965,7 @@ void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int h
if ((glInternalFormat != -1) && (format < RL_PIXELFORMAT_COMPRESSED_DXT1_RGB))
{
- glTexSubImage2D(GL_TEXTURE_2D, 0, offsetX, offsetY, width, height, glFormat, glType, (unsigned char *)data);
+ glTexSubImage2D(GL_TEXTURE_2D, 0, offsetX, offsetY, width, height, glFormat, glType, data);
}
else TRACELOG(RL_LOG_WARNING, "TEXTURE: [ID %i] Failed to update for current texture format (%i)", id, format);
}