video zoom: Fix crash on windows when making detached video too small
This commit is contained in:
parent
0e89f32cfb
commit
28db5d31ce
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ void VideoDisplay::Render() try {
|
||||||
|
|
||||||
E(glMatrixMode(GL_PROJECTION));
|
E(glMatrixMode(GL_PROJECTION));
|
||||||
E(glLoadIdentity());
|
E(glLoadIdentity());
|
||||||
E(glOrtho(0.0f, client_w, client_h, 0.0f, -1000.0f, 1000.0f));
|
E(glOrtho(0.0f, std::max(client_w, 1), std::max(client_h, 1), 0.0f, -1000.0f, 1000.0f));
|
||||||
|
|
||||||
if (OPT_GET("Video/Overscan Mask")->GetBool()) {
|
if (OPT_GET("Video/Overscan Mask")->GetBool()) {
|
||||||
double ar = con->videoController->GetAspectRatioValue();
|
double ar = con->videoController->GetAspectRatioValue();
|
||||||
|
|
Loading…
Reference in a new issue