You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I attach a depth texture to a render pass I get an invalid operation OpenGL error (invalid operation) during operation "glDrawBuffers((GLsizei) draw_buffers.size(), draw_buffers.data())"! from this line
. And then I get the critical error RenderPass::RenderPass(): framebuffer is marked as incomplete: incomplete attachment.
I am using the example1.cpp file, where I added the following lines
m_depth_tex = new Texture(
Texture::PixelFormat::Depth,
Texture::ComponentFormat::Float32,
m_size);
m_render_pass = new RenderPass({ this }, m_depth_tex);
When I attach a depth texture to a render pass I get an invalid operation
OpenGL error (invalid operation) during operation "glDrawBuffers((GLsizei) draw_buffers.size(), draw_buffers.data())"!
from this linenanogui/src/renderpass_gl.cpp
Line 93 in 2ee903c
RenderPass::RenderPass(): framebuffer is marked as incomplete: incomplete attachment
.I am using the
example1.cpp
file, where I added the following linesIf if replace
GL_BACK_LEFT
byattachment_id
herenanogui/src/renderpass_gl.cpp
Line 67 in 2ee903c
glDrawBuffers
is gone, but there is still the critical error ofincomplete attachment
.I am using OpenGL on ubuntu.
The text was updated successfully, but these errors were encountered: