mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
Clean-up extraneous glFlush(), it's all in the main thread on shared context..
This commit is contained in:
parent
f22ef685f5
commit
cd41a8197e
@ -63,8 +63,8 @@ void UITestContext::Draw() {
|
||||
}
|
||||
|
||||
void UITestContext::DrawEnd() {
|
||||
glFlush();
|
||||
// glFlush();
|
||||
|
||||
CheckGLError();
|
||||
// CheckGLError();
|
||||
}
|
||||
|
||||
|
@ -44,8 +44,8 @@ void MeterContext::Draw(float r, float g, float b, float a, float level) {
|
||||
}
|
||||
|
||||
void MeterContext::DrawEnd() {
|
||||
glFlush();
|
||||
// glFlush();
|
||||
|
||||
CheckGLError();
|
||||
// CheckGLError();
|
||||
}
|
||||
|
||||
|
@ -66,8 +66,8 @@ void ModeSelectorContext::DrawSelector(std::string label, int c, int cMax, bool
|
||||
}
|
||||
|
||||
void ModeSelectorContext::DrawEnd() {
|
||||
glFlush();
|
||||
// glFlush();
|
||||
|
||||
CheckGLError();
|
||||
// CheckGLError();
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -51,9 +51,9 @@ void ScopeContext::DrawDeviceName(std::string deviceName) {
|
||||
}
|
||||
|
||||
void ScopeContext::DrawEnd() {
|
||||
glFlush();
|
||||
// glFlush();
|
||||
|
||||
CheckGLError();
|
||||
// CheckGLError();
|
||||
}
|
||||
|
||||
void ScopeContext::DrawDivider() {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user