Updated GLAD

This commit is contained in:
korenkonder
2025-04-23 19:12:55 +03:00
parent bb32c42f62
commit 932a2c8a0f
8 changed files with 20 additions and 1490 deletions
+3 -3
View File
@@ -280,11 +280,11 @@ void texture_get_format_type_by_internal_format(GLenum internal_format, GLenum*
GLenum _type;
switch (internal_format) {
case GL_ALPHA8:
_format = GL_R;
_format = GL_RED;
_type = GL_UNSIGNED_BYTE;
break;
case GL_LUMINANCE8:
_format = GL_R;
_format = GL_RED;
_type = GL_UNSIGNED_BYTE;
break;
case GL_LUMINANCE8_ALPHA8:
@@ -292,7 +292,7 @@ void texture_get_format_type_by_internal_format(GLenum internal_format, GLenum*
_type = GL_UNSIGNED_BYTE;
break;
case GL_INTENSITY8:
_format = GL_R;
_format = GL_RED;
_type = GL_UNSIGNED_BYTE;
break;
case GL_RGB5:
+5
View File
@@ -11,6 +11,11 @@
#include "gl.hpp"
#include <map>
#define GL_ALPHA8 0x803C
#define GL_LUMINANCE8 0x8040
#define GL_LUMINANCE8_ALPHA8 0x8045
#define GL_INTENSITY8 0x804B
enum texture_flags {
TEXTURE_BLOCK_COMPRESSION = 0x01,
};