VOGONS


First post, by jaclfh

User metadata
Rank Newbie
Rank
Newbie

Is there a reason why 15,16 and 32-bit color modes are disabled for output=opengl? If I remove the disabling code, at least 320x200 32-bit color mode seems to work fine.

--- dosbox-0.74.orig//src/gui/sdlmain.cpp       2010-05-10 20:43:54.000000000 +0300
+++ dosbox-0.74//src/gui/sdlmain.cpp 2011-06-05 22:22:58.788293580 +0300
@@ -333,7 +333,7 @@
break;
#if C_OPENGL
case SCREEN_OPENGL:
- if (flags & GFX_RGBONLY || !(flags&GFX_CAN_32)) goto check_surface;
+ if (!(flags&GFX_CAN_32)) goto check_surface;
flags|=GFX_SCALING;
flags&=~(GFX_CAN_8|GFX_CAN_15|GFX_CAN_16);
break;
@@ -564,7 +564,7 @@
free(sdl.opengl.framebuf);
}
sdl.opengl.framebuf=0;
- if (!(flags&GFX_CAN_32) || (flags & GFX_RGBONLY)) goto dosurface;
+ if (!(flags&GFX_CAN_32)) goto dosurface;
int texsize=2 << int_log2(width > height ? width : height);
if (texsize>sdl.opengl.max_texsize) {
LOG_MSG("SDL:OPENGL:No support for texturesize of %d, falling back to surface",texsize);