Use gstate.* accessors in a few more places.

This commit is contained in:
Unknown W. Brackets committed 2013-08-24 11:34:35 -07:00
1 parent 55e02369a5
commit c141e94fe9
11 files changed
+20 -18

No files matched your search

+1 -1
View File
@@ -475,7 +475,7 @@ void FramebufferManager::SetRenderFrameBuffer() {
// As there are no clear "framebuffer width" and "framebuffer height" registers,
// we need to infer the size of the current framebuffer somehow. Let's try the viewport.
GEBufferFormat fmt = static_cast<GEBufferFormat>(gstate.framebufpixformat & 3);
GEBufferFormat fmt = gstate.FrameBufFormat();
int drawing_width, drawing_height;
GuessDrawingSize(drawing_width, drawing_height);