1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-05 07:24:44 -04:00

OpemGL: reorder functions so that the sequence glPushMatrix, glScalef and glTranslatef is always first in each rendering block lines of code

This commit is contained in:
f4exb
2016-02-29 23:29:01 +01:00
parent b2dc3026bc
commit d975a0f12c
2 changed files with 26 additions and 26 deletions
+3 -3
View File
@@ -240,13 +240,13 @@ void GLScope::paintGL()
emit traceSizeChanged(m_displayTrace->size());
}
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClear(GL_COLOR_BUFFER_BIT);
glPushMatrix();
glScalef(2.0, -2.0, 1.0);
glTranslatef(-0.50, -0.5, 0);
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClear(GL_COLOR_BUFFER_BIT);
// I - primary display
if ((m_displays == DisplayBoth) || (m_displays == DisplayFirstOnly))