Commit ea2c42d6 authored by Georg Schaefer's avatar Georg Schaefer
Browse files

fix damn fucking opengl intel driver bug with framebuffer again -.-

parent 6ca5ef44
......@@ -64,9 +64,9 @@ namespace gdw {
ortho_projection_ = glm::ortho(0.f, static_cast<float>(width), 0.f, static_cast<float>(height));
g_buffer_.attach(GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, GL_DEPTH_COMPONENT32F, width, height, GL_DEPTH_COMPONENT, GL_FLOAT);
g_buffer_.attach(GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, GL_RGB32F, width, height, GL_RGB, GL_FLOAT);
g_buffer_.attach(GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D, GL_RGB32F, width, height, GL_RGB, GL_FLOAT);
g_buffer_.attach(GL_COLOR_ATTACHMENT2, GL_TEXTURE_2D, GL_RGB32F, width, height, GL_RGB, GL_FLOAT);
g_buffer_.attach(GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, GL_RGBA32F, width, height, GL_RGBA, GL_FLOAT);
g_buffer_.attach(GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D, GL_RGBA32F, width, height, GL_RGBA, GL_FLOAT);
g_buffer_.attach(GL_COLOR_ATTACHMENT2, GL_TEXTURE_2D, GL_RGBA32F, width, height, GL_RGBA, GL_FLOAT);
g_buffer_.bind();
glDrawBuffers(4, buf_);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment