1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

allow GL_RGBA8 without autorenderer to raise compatibility

This commit is contained in:
FunkyFr3sh 2018-05-22 04:23:05 +02:00
parent 09c17d80f1
commit 3fcc17b336

View File

@ -125,6 +125,9 @@ DWORD WINAPI render_main(void)
if (glGetError() != GL_NO_ERROR)
glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, tex_width, tex_height, 0, surfaceFormat = GL_RED, GL_UNSIGNED_BYTE, 0);
if (!ddraw->autorenderer && glGetError() != GL_NO_ERROR) // very slow...
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, tex_width, tex_height, 0, surfaceFormat = GL_RED, GL_UNSIGNED_BYTE, 0);
}
else
{