We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06070e commit 5314957Copy full SHA for 5314957
2 files changed
code/ktxutils/ktxutils.cpp
@@ -1,7 +1,6 @@
1
#include "ktxutils.h"
2
#include "bmpman/bmpman.h"
3
#include "cfile/cfile.h"
4
-#include <glad/glad.h>
5
//KTX1 Spec definition https://registry.khronos.org/KTX/specs/1.0/ktxspec.v1.html
6
//ETC2 formats spec https://registry.khronos.org/DataFormat/specs/1.4/dataformat.1.4.inline.html#ETC2
7
code/ktxutils/ktxutils.h
@@ -1,7 +1,9 @@
#pragma once
#include "globalincs/pstypes.h"
+#ifdef WITH_OPENGL
#include <glad/glad.h>
+#endif
8
// ETC2 types
9
#define KTX_ETC2_RGB 101
0 commit comments