We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca8ba0d commit 40a9ff3Copy full SHA for 40a9ff3
src/render_ogl.c
@@ -934,6 +934,11 @@ static void ogl_render()
934
{
935
glEnable(GL_TEXTURE_2D);
936
}
937
+ else // 8 bpp only works with a shader (opengl 2.0 or above)
938
+ {
939
+ g_ogl.use_opengl = FALSE;
940
+ return;
941
+ }
942
943
DWORD timeout = g_config.minfps > 0 ? g_ddraw.minfps_tick_len : INFINITE;
944
@@ -1155,7 +1160,9 @@ static void ogl_render()
1155
1160
1156
1161
1157
1162
1158
- glActiveTexture(GL_TEXTURE0);
1163
+ if (glActiveTexture)
1164
+ glActiveTexture(GL_TEXTURE0);
1165
+
1159
1166
glBindTexture(GL_TEXTURE_2D, g_ogl.surface_tex_ids[tex_index]);
1167
1168
if (g_ddraw.bpp == 8)
0 commit comments