diff options
| author | Ray <[email protected]> | 2021-11-15 10:25:24 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-11-15 10:25:24 +0100 |
| commit | b7bf22059875417be1b42c3e39e234d28f71fc11 (patch) | |
| tree | 7ca5220ed5f67906bccfc22d65a0b04e897001ce | |
| parent | ed125f27b01053dfd814a0d847ce7534c0a3ea8d (diff) | |
| download | raylib-b7bf22059875417be1b42c3e39e234d28f71fc11.tar.gz raylib-b7bf22059875417be1b42c3e39e234d28f71fc11.zip | |
REVIEWED: rlUpdateTexture()
| -rw-r--r-- | src/rlgl.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
