Fix --opengl-render option. Please NEVER use this option though

This commit is contained in:
jacob1 2016-05-14 09:44:49 -04:00
parent 63ac47a270
commit ce55c8e58b
3 changed files with 3 additions and 3 deletions

View File

@ -187,13 +187,13 @@ std::string ClipboardPull()
return clipboardText;
}
int mousex = 0, mousey = 0;
#ifdef OGLI
void blit()
{
SDL_GL_SwapBuffers();
}
#else
int mousex = 0, mousey = 0;
void DrawPixel(pixel * vid, pixel color, int x, int y)
{
if (x >= 0 && x < WINDOWW && y >= 0 && y < WINDOWH)

View File

@ -1012,9 +1012,9 @@ void Renderer::DrawSigns()
x += dx;
y += dy;
}
}
#endif
}
}
#ifdef OGLR
glTranslated(0, -MENUSIZE, 0);
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, prevFbo);

View File

@ -214,9 +214,9 @@ void SignWindow::DoDraw()
x+=dx;
y+=dy;
}
}
#endif
}
}
if(!signMoving)
{
ui::Window::DoDraw();