diff --git a/src/video/morphos/SDL_mosopengl.c b/src/video/morphos/SDL_mosopengl.c index 48356ff1b763d..a101c2a0e5fc9 100644 --- a/src/video/morphos/SDL_mosopengl.c +++ b/src/video/morphos/SDL_mosopengl.c @@ -121,7 +121,7 @@ MOS_GL_AllocBitmap(_THIS, SDL_Window * window) w = vd->CustomScreen->Width; h = vd->CustomScreen->Height; friend_bitmap=vd->CustomScreen->RastPort.BitMap; - } else { + } else if (data->win) { //D("[%s] WINDOWED\n", __FUNCTION__); w = window->w; h= window->h;