Clean-up extraneous glFlush(), it's all in the main thread on shared context..

This commit is contained in:
Charles J. Cliffe 2016-03-31 20:24:38 -04:00
parent f22ef685f5
commit cd41a8197e
6 changed files with 12 additions and 12 deletions

View File

@ -63,8 +63,8 @@ void UITestContext::Draw() {
}
void UITestContext::DrawEnd() {
glFlush();
// glFlush();
CheckGLError();
// CheckGLError();
}

View File

@ -44,8 +44,8 @@ void MeterContext::Draw(float r, float g, float b, float a, float level) {
}
void MeterContext::DrawEnd() {
glFlush();
// glFlush();
CheckGLError();
// CheckGLError();
}

View File

@ -66,8 +66,8 @@ void ModeSelectorContext::DrawSelector(std::string label, int c, int cMax, bool
}
void ModeSelectorContext::DrawEnd() {
glFlush();
// glFlush();
CheckGLError();
// CheckGLError();
}

View File

@ -483,9 +483,9 @@ void PrimaryGLContext::BeginDraw(float r, float g, float b) {
}
void PrimaryGLContext::EndDraw() {
glFlush();
// glFlush();
CheckGLError();
// CheckGLError();
}
void PrimaryGLContext::setHoverAlpha(float hoverAlpha) {

View File

@ -51,9 +51,9 @@ void ScopeContext::DrawDeviceName(std::string deviceName) {
}
void ScopeContext::DrawEnd() {
glFlush();
// glFlush();
CheckGLError();
// CheckGLError();
}
void ScopeContext::DrawDivider() {

View File

@ -59,9 +59,9 @@ void TuningContext::Draw(float r, float g, float b, float a, float p1, float p2)
}
void TuningContext::DrawEnd() {
glFlush();
// glFlush();
CheckGLError();
// CheckGLError();
}
void TuningContext::DrawTuner(long long freq, int count, float displayPos, float displayWidth) {