mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +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;
|
||||
glLoadIdentity();
|
||||
glOrtho(0, glCanvas->width(), glCanvas->height(), 0, NEAR_CLIP, FAR_CLIP);
|
||||
|
||||
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
||||
renderAudioMeter();
|
||||
|
||||
|
||||
renderStatsAndLogs();
|
||||
|
||||
|
||||
// give external parties a change to hook in
|
||||
emit application->renderingOverlay();
|
||||
|
||||
|
||||
overlays.renderHUD();
|
||||
|
||||
|
||||
renderPointers();
|
||||
|
||||
|
||||
renderDomainConnectionStatusBorder();
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
} glPopMatrix();
|
||||
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
|
Loading…
Reference in a new issue