forked from rosebudai/OpenRCT2-Web
do not draw windows twice on OpenGL
This commit is contained in:
1 parent
8edc97bebe
commit
ccec48e382
2 files changed
+3
-1
No files matched your search
@@ -175,7 +175,6 @@ public:
|
||||
glTranslatef(-1.0f, -1.0f, 0);
|
||||
glScalef(2.0f / _width, 2.0f / _height, 0);
|
||||
|
||||
gfx_redraw_screen_rect(0, 0, _width - 1, _height - 1);
|
||||
window_update_all_viewports();
|
||||
gfx_redraw_screen_rect(0, 0, _width - 1, _height - 1);
|
||||
window_update_all();
|
||||
|
||||
@@ -293,7 +293,10 @@ public:
|
||||
_rainDrawer.SetDPI(&_bitsDPI);
|
||||
_rainDrawer.Restore();
|
||||
|
||||
// Redraw dirty regions before updating the viewports, otherwise
|
||||
// when viewports get panned, they copy dirty pixels
|
||||
DrawAllDirtyBlocks();
|
||||
|
||||
window_update_all_viewports();
|
||||
DrawAllDirtyBlocks();
|
||||
window_update_all();
|
||||
|
||||
Reference in new issue
Block a user