mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
OpenGL: Apply vertex/index buffers just before draw.
Previously we would modify the GL state as soon as we saw SetIndex/VertexBuffers. This GL state is owned by the VAOs in the InputState and was disappearing on a Pipeline change. Fix this by applying the index / vertex buffers lazily.
This commit is contained in:
committed by
Corentin Wallez
parent
6d9a3b82c6
commit
33f7bfe322
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "backend/opengl/BlendStateGL.h"
|
||||
#include "backend/opengl/DepthStencilStateGL.h"
|
||||
#include "backend/opengl/InputStateGL.h"
|
||||
#include "backend/opengl/OpenGLBackend.h"
|
||||
#include "backend/opengl/PersistentPipelineStateGL.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user