Codechange: [OpenGL] Use a vertex array object to store the vertex state for the video buffer.

This commit is contained in:
Michael Lutz
2021-01-16 16:43:14 +01:00
parent acf2ce35f7
commit 5af0cfd902
2 changed files with 40 additions and 5 deletions

View File

@@ -27,6 +27,7 @@ private:
void *vid_buffer; ///< Pointer to the memory used for the video driver to draw to.
GLuint vid_texture; ///< Texture handle for the video buffer texture.
GLuint vao_quad; ///< Vertex array object storing the rendering state for the fullscreen quad.
GLuint vbo_quad; ///< Vertex buffer with a fullscreen quad.
OpenGLBackend();