Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

OpenGL not rendering all VertexBuffers when using FrameBuffer

$
0
0

My OpenGL renderer works fine when I do simple forward rendering, but when I try to render to a frame buffer it does not display the last Vertex Array that I tell it to draw. I've changed the order in which they are passed and it always draws all but the last one.

I'm hoping that it's just something silly, like calling something out of order or forgetting to switch a value.

Drawing directly to the back buffer
Drawing to the frame buffer

Here's the render code:

void OpenGLRenderer::render(std::vector<RenderObject>& scene, const Camera& camera …

Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>