summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index a7eacede..42dff546 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -2208,7 +2208,7 @@ void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int h
if ((glInternalFormat != -1) && (format < COMPRESSED_DXT1_RGB))
{
- glTexSubImage2D(GL_TEXTURE_2D, 0, offsetY, offsetY, width, height, glFormat, glType, (unsigned char *)data);
+ glTexSubImage2D(GL_TEXTURE_2D, 0, offsetX, offsetY, width, height, glFormat, glType, (unsigned char *)data);
}
else TRACELOG(LOG_WARNING, "TEXTURE: [ID %i] Failed to update for current texture format (%i)", id, format);
}