mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-04 04:37:55 +03:00
Updated GLAD
This commit is contained in:
+3
-3
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user