Skip to content

Commit

Permalink
Fix mixed up FBO targets in status check code inside OpenGLDriver::bl…
Browse files Browse the repository at this point in the history
…it()
  • Loading branch information
palver123 authored and pixelflinger committed May 6, 2024
1 parent 1c693e2 commit e855f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filament/backend/src/opengl/OpenGLDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3656,7 +3656,7 @@ void OpenGLDriver::blit(
case SamplerType::SAMPLER_EXTERNAL:
break;
}
CHECK_GL_FRAMEBUFFER_STATUS(utils::slog.e, GL_READ_FRAMEBUFFER)
CHECK_GL_FRAMEBUFFER_STATUS(utils::slog.e, GL_DRAW_FRAMEBUFFER)

gl.bindFramebuffer(GL_READ_FRAMEBUFFER, fbo[1]);
switch (s->target) {
Expand All @@ -3682,7 +3682,7 @@ void OpenGLDriver::blit(
case SamplerType::SAMPLER_EXTERNAL:
break;
}
CHECK_GL_FRAMEBUFFER_STATUS(utils::slog.e, GL_DRAW_FRAMEBUFFER)
CHECK_GL_FRAMEBUFFER_STATUS(utils::slog.e, GL_READ_FRAMEBUFFER)

gl.disable(GL_SCISSOR_TEST);
glBlitFramebuffer(
Expand Down

0 comments on commit e855f4a

Please sign in to comment.