mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-15 14:27:29 +00:00
Eliminates all unused #ifdef GL_NV_texture_barrier code.
This commit is contained in:
@@ -167,11 +167,11 @@ void OpenGLOutputBuilder::draw_frame(unsigned int output_width, unsigned int out
|
|||||||
glBindVertexArray(source_vertex_array_);
|
glBindVertexArray(source_vertex_array_);
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
|
|
||||||
#ifdef GL_NV_texture_barrier
|
#ifdef #ifdef GL_NV_texture_barrier
|
||||||
if(work_texture_) {
|
// if(work_texture_) {
|
||||||
work_texture_->bind_framebuffer();
|
// work_texture_->bind_framebuffer();
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
// glClear(GL_COLOR_BUFFER_BIT);
|
||||||
}
|
// }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while(active_pipeline->shader) {
|
while(active_pipeline->shader) {
|
||||||
@@ -194,7 +194,7 @@ void OpenGLOutputBuilder::draw_frame(unsigned int output_width, unsigned int out
|
|||||||
|
|
||||||
active_pipeline++;
|
active_pipeline++;
|
||||||
#ifdef GL_NV_texture_barrier
|
#ifdef GL_NV_texture_barrier
|
||||||
glTextureBarrierNV();
|
// glTextureBarrierNV();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -218,7 +218,7 @@ void OpenGLOutputBuilder::draw_frame(unsigned int output_width, unsigned int out
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GL_NV_texture_barrier
|
#ifdef GL_NV_texture_barrier
|
||||||
glTextureBarrierNV();
|
// glTextureBarrierNV();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// copy framebuffer to the intended place
|
// copy framebuffer to the intended place
|
||||||
|
Reference in New Issue
Block a user