mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:28:09 +02:00
Merge pull request #4077 from huffman/fix-render-hud-windows-linux
Fix gl projection matrix stack overflow when rendering to HUD
This commit is contained in:
commit
60aafba0ce
1 changed files with 10 additions and 6 deletions
|
@ -197,19 +197,23 @@ void ApplicationOverlay::renderOverlay(bool renderToTexture) {
|
||||||
const float FAR_CLIP = 10000;
|
const float FAR_CLIP = 10000;
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
glOrtho(0, glCanvas->width(), glCanvas->height(), 0, NEAR_CLIP, FAR_CLIP);
|
glOrtho(0, glCanvas->width(), glCanvas->height(), 0, NEAR_CLIP, FAR_CLIP);
|
||||||
|
|
||||||
|
glMatrixMode(GL_MODELVIEW);
|
||||||
|
|
||||||
renderAudioMeter();
|
renderAudioMeter();
|
||||||
|
|
||||||
renderStatsAndLogs();
|
renderStatsAndLogs();
|
||||||
|
|
||||||
// give external parties a change to hook in
|
// give external parties a change to hook in
|
||||||
emit application->renderingOverlay();
|
emit application->renderingOverlay();
|
||||||
|
|
||||||
overlays.renderHUD();
|
overlays.renderHUD();
|
||||||
|
|
||||||
renderPointers();
|
renderPointers();
|
||||||
|
|
||||||
renderDomainConnectionStatusBorder();
|
renderDomainConnectionStatusBorder();
|
||||||
|
|
||||||
|
glMatrixMode(GL_PROJECTION);
|
||||||
} glPopMatrix();
|
} glPopMatrix();
|
||||||
|
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
|
|
Loading…
Reference in a new issue