diff --git a/src/video.c b/src/video.c index 697fedf..9612c0f 100644 --- a/src/video.c +++ b/src/video.c @@ -532,7 +532,7 @@ void gfx_init_texture_amap(struct texture *t, int w, int h, uint8_t *amap, SDL_C void gfx_init_texture_rmap(struct texture *t, int w, int h, uint8_t *rmap) { init_texture(t, w, h); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, w, h, 0, GL_RED, GL_UNSIGNED_BYTE, rmap); + glTexImage2D(GL_TEXTURE_2D, 0, GL_R8, w, h, 0, GL_RED, GL_UNSIGNED_BYTE, rmap); } void gfx_init_texture_blank(struct texture *t, int w, int h)