GRIM/EMI: Call glViewport for apitrace compatibility

glViewport needs to be called once to avoid the apitrace
error: "could not infer drawable size (glViewport never called)".

This fixes the problem that all apitrace framebuffer pictures
had a default size of 32x32 instead of the correct resolution used
in residualvm.
This commit is contained in:
Christian Krause 2014-09-17 01:16:31 +02:00
parent 1b5d84a713
commit 598bfc5fe9

View file

@ -405,6 +405,8 @@ byte *GfxOpenGLS::setupScreen(int screenW, int screenH, bool fullscreen) {
// Load emergency built-in font
loadEmergFont();
glViewport(0, 0, _screenWidth, _screenHeight);
glGenTextures(1, &_storedDisplay);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);