diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-01-16 16:43:14 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-22 22:16:07 +0100 |
commit | 5af0cfd902e71d1d3ed5d20649b44f5c0125b4cd (patch) | |
tree | eb036d63762e6ea329ab35dea5a6df1134189ae6 /src/video/opengl.h | |
parent | acf2ce35f736bf9e3c582ae89cc816a4413ee837 (diff) | |
download | openttd-5af0cfd902e71d1d3ed5d20649b44f5c0125b4cd.tar.xz |
Codechange: [OpenGL] Use a vertex array object to store the vertex state for the video buffer.
Diffstat (limited to 'src/video/opengl.h')
-rw-r--r-- | src/video/opengl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video/opengl.h b/src/video/opengl.h index 15dc390b7..dfc71b5f7 100644 --- a/src/video/opengl.h +++ b/src/video/opengl.h @@ -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(); |