Skip to content

Commit

Permalink
fix opengl error
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Jul 5, 2018
1 parent 1ee5cb4 commit 531c772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glbackend/glwindow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function GLFramebuffer(fb_size::NTuple{2, Int})
glBindRenderbuffer(GL_RENDERBUFFER, depth_buffer[])
glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT32, fb_size...)

glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, depth_buffer[])
glFramebufferRenderbuffer(GL_RENDERBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, depth_buffer[])

attach_framebuffer(color_buffer, GL_COLOR_ATTACHMENT0)
attach_framebuffer(objectid_buffer, GL_COLOR_ATTACHMENT1)
Expand Down

0 comments on commit 531c772

Please sign in to comment.