mirror of https://github.com/sm64pc/sm64pc.git
fix #537
This commit is contained in:
parent
2256c014c4
commit
98aa0fe376
|
@ -529,7 +529,7 @@ static void gfx_opengl_select_texture(int tile, GLuint texture_id) {
|
||||||
gfx_opengl_set_texture_uniforms(opengl_prg, tile);
|
gfx_opengl_set_texture_uniforms(opengl_prg, tile);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gfx_opengl_upload_texture(uint8_t *rgba32_buf, int width, int height) {
|
static void gfx_opengl_upload_texture(const uint8_t *rgba32_buf, int width, int height) {
|
||||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, rgba32_buf);
|
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, rgba32_buf);
|
||||||
opengl_tex[opengl_curtex]->size[0] = width;
|
opengl_tex[opengl_curtex]->size[0] = width;
|
||||||
opengl_tex[opengl_curtex]->size[1] = height;
|
opengl_tex[opengl_curtex]->size[1] = height;
|
||||||
|
|
Loading…
Reference in New Issue