Skip to content

Commit

Permalink
Remove GL check from Renderer glLinkProgram() (#5023)
Browse files Browse the repository at this point in the history
Was catching spurious Qt 6.6.2 error:
GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)

https://bugreports.qt.io/browse/QTBUG-122819
  • Loading branch information
cjmayo committed Feb 29, 2024
1 parent 8bff31d commit c6902af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glview/Renderer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void Renderer::setupShader() {
auto edgeshader_prog = glCreateProgram();
glAttachShader(edgeshader_prog, vs);
glAttachShader(edgeshader_prog, fs);
IF_GL_CHECK(glLinkProgram(edgeshader_prog)) return;
glLinkProgram(edgeshader_prog);
GLint status;
glGetProgramiv(edgeshader_prog, GL_LINK_STATUS, &status);
if (!status) {
Expand Down

0 comments on commit c6902af

Please sign in to comment.