Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/application/StarRenderer_opengl.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-07-07 04:44:01 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-07-07 04:44:01 +1000
commitd313a3ceb35e167c1f47399ec5c787f94140a5b1 (patch)
tree77545287d4fe3b3e21d73c40a58486abe09f1732 /source/application/StarRenderer_opengl.hpp
parent4b0d1cb90d774e31f50a13ced58aad9ab4768490 (diff)
OpenGL: use 4.1 core
necessary for modern Mac support
Diffstat (limited to 'source/application/StarRenderer_opengl.hpp')
-rw-r--r--source/application/StarRenderer_opengl.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/application/StarRenderer_opengl.hpp b/source/application/StarRenderer_opengl.hpp
index 61c67c9..035b906 100644
--- a/source/application/StarRenderer_opengl.hpp
+++ b/source/application/StarRenderer_opengl.hpp
@@ -143,6 +143,7 @@ private:
size_t vertexCount = 0;
};
+ GlRenderBuffer();
~GlRenderBuffer();
void set(List<RenderPrimitive>& primitives) override;
@@ -152,6 +153,7 @@ private:
HashSet<TexturePtr> usedTextures;
List<GlVertexBuffer> vertexBuffers;
+ GLuint vertexArray = 0;
bool useMultiTexturing{true};
};