Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/debug/debug_gui.cpp
- ===================================================================
- --- src/debug/debug_gui.cpp (revision 4296)
- +++ src/debug/debug_gui.cpp (working copy)
- @@ -67,7 +67,7 @@
- if(buf[len - 1] != '\n' && len + 1 < sizeof(buf) ) strcat(buf,"\n");
- if(debuglog) fprintf(debuglog,"%s",buf);
- -
- + if(debuglog) fflush(debuglog);
- if (logBuffPos != logBuff.end()) {
- logBuffPos=logBuff.end();
- DEBUG_RefreshPage(0);
- Index: src/gui/sdlmain.cpp
- ===================================================================
- --- src/gui/sdlmain.cpp (revision 4296)
- +++ src/gui/sdlmain.cpp (working copy)
- @@ -691,6 +691,18 @@
- SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL, 0 );
- #endif
- GFX_SetupSurfaceScaled(SDL_OPENGL,0);
- + int a =-1;
- + SDL_GL_GetAttribute(SDL_GL_DOUBLEBUFFER,&a);
- + LOG_MSG("double buffer opengl %d",a);
- + a = -1;
- + SDL_GL_GetAttribute(SDL_GL_DEPTH_SIZE,&a);
- + LOG_MSG("depth %d",a);
- + a = -1;
- + SDL_GL_GetAttribute(SDL_GL_BUFFER_SIZE,&a);
- + LOG_MSG("buffersize %d",a);
- + SDL_GL_GetAttribute(SDL_GL_STENCIL_SIZE,&a);
- + LOG_MSG("stencilsize %d",a);
- + LOG_MSG("bits pp %d",sdl.surface->format->BitsPerPixel);
- if (!sdl.surface || sdl.surface->format->BitsPerPixel<15) {
- LOG_MSG("SDL:OPENGL: Can't open drawing surface, are you running in 16bpp (or higher) mode?");
- goto dosurface;
- @@ -834,6 +846,7 @@
- #endif
- void GFX_SwitchFullScreen(void) {
- + LOG_MSG("switching mode");
- sdl.desktop.fullscreen=!sdl.desktop.fullscreen;
- if (sdl.desktop.fullscreen) {
- if (!sdl.mouse.locked) GFX_CaptureMouse();
- @@ -867,6 +880,7 @@
- }
- void GFX_SwitchFullscreenNoReset(void) {
- + LOG_MSG("switching mode");
- sdl.desktop.fullscreen=!sdl.desktop.fullscreen;
- }
- @@ -926,7 +940,10 @@
- } else
- pixels=(Bit8u *)sdl.opengl.framebuf;
- pitch=sdl.opengl.pitch;
- + LOG_MSG("pitch %d and pixels %d", pitch, pixels);
- + if(pixels == NULL) return false;
- sdl.updating=true;
- + //LOG_MSG("1pitch %d and 1pixels %d", pitch, pixels);
- return true;
- #endif
- default:
- @@ -943,6 +960,7 @@
- if (!sdl.updating)
- return;
- sdl.updating=false;
- + //return;
- switch (sdl.desktop.type) {
- case SCREEN_SURFACE:
- if (SDL_MUSTLOCK(sdl.surface)) {
- @@ -1009,7 +1027,8 @@
- glClearColor (0.0f, 0.0f, 0.0f, 1.0f);
- glClear(GL_COLOR_BUFFER_BIT);
- if (sdl.opengl.pixel_buffer_object) {
- - glUnmapBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT);
- + GLboolean a = glUnmapBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT);
- + if (a == GL_FALSE) LOG_MSG("HELP");
- glBindTexture(GL_TEXTURE_2D, sdl.opengl.texture);
- glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0,
- sdl.draw.width, sdl.draw.height, GL_BGRA_EXT,
- @@ -1016,6 +1035,7 @@
- GL_UNSIGNED_INT_8_8_8_8_REV, 0);
- glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_EXT, 0);
- glCallList(sdl.opengl.displaylist);
- + glFinish();
- SDL_GL_SwapBuffers();
- } else if (changedLines) {
- Bitu y = 0, index = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement