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:
parent
1b5d84a713
commit
598bfc5fe9
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue