Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ if(Qt6OpenGL_FOUND)
OUTPUT_VARIABLE OUTPUT)
file(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckQtOpenGL33.cpp
"#include <QOpenGLFunctions_3_3_Core>
#ifndef GL_QUADS
#ifndef GL_TRIANGLES
# error
#endif
int main(int argc, char** argv) { return 0; }")
Expand Down
7 changes: 7 additions & 0 deletions src/opengl/OpenGLTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
#include <QOpenGLTexture>
#include <qopengl.h>

#ifndef GL_QUADS
#define GL_QUADS 0x0007
#endif
#ifndef GL_POINT_SPRITE
#define GL_POINT_SPRITE 0x8861
#endif

struct NODISCARD Viewport final
{
glm::ivec2 offset{};
Expand Down
Loading