diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 53dd526be..bb9b2bf2c 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -246,10 +246,10 @@ namespace bgfx { namespace gl { GL_RG32I, GL_ZERO, GL_RG, GL_INT, false }, // RG32I { GL_RG32UI, GL_ZERO, GL_RG, GL_UNSIGNED_INT, false }, // RG32U { GL_RG32F, GL_ZERO, GL_RG, GL_FLOAT, false }, // RG32F - { GL_RGB8, GL_SRGB8, GL_RGB, GL_UNSIGNED_BYTE, }, // RGB8 - { GL_RGB8I, GL_ZERO, GL_RGB, GL_BYTE, }, // RGB8I - { GL_RGB8UI, GL_ZERO, GL_RGB, GL_UNSIGNED_BYTE, }, // RGB8U - { GL_RGB8_SNORM, GL_ZERO, GL_RGB, GL_BYTE, }, // RGB8S + { GL_RGB8, GL_SRGB8, GL_RGB, GL_UNSIGNED_BYTE, false }, // RGB8 + { GL_RGB8I, GL_ZERO, GL_RGB, GL_BYTE, false }, // RGB8I + { GL_RGB8UI, GL_ZERO, GL_RGB, GL_UNSIGNED_BYTE, false }, // RGB8U + { GL_RGB8_SNORM, GL_ZERO, GL_RGB, GL_BYTE, false }, // RGB8S { GL_RGB9_E5, GL_ZERO, GL_RGB, GL_UNSIGNED_INT_5_9_9_9_REV, false }, // RGB9E5F { GL_RGBA8, GL_SRGB8_ALPHA8, GL_BGRA, GL_UNSIGNED_BYTE, false }, // BGRA8 { GL_RGBA8, GL_SRGB8_ALPHA8, GL_RGBA, GL_UNSIGNED_BYTE, false }, // RGBA8 diff --git a/src/renderer_gl.h b/src/renderer_gl.h index 47f2c5271..884cc614c 100644 --- a/src/renderer_gl.h +++ b/src/renderer_gl.h @@ -222,6 +222,30 @@ typedef uint64_t GLuint64; # define GL_RG32F 0x8230 #endif // GL_RG32F +#ifndef GL_RGB8 +# define GL_RGB8 0x8051 +#endif // GL_RGB8 + +#ifndef GL_SRGB +# define GL_SRGB 0x8C40 +#endif // GL_SRGB + +#ifndef GL_SRGB8 +# define GL_SRGB8 0x8C41 +#endif // GL_SRGB8 + +#ifndef GL_RGB8I +# define GL_RGB8I 0x8D8F +#endif // GL_RGB8I + +#ifndef GL_RGB8UI +# define GL_RGB8UI 0x8D7D +#endif // GL_RGB8UI + +#ifndef GL_RGB8_SNORM +# define GL_RGB8_SNORM 0x8F96 +#endif // GL_RGB8_SNORM + #ifndef GL_RGBA8I # define GL_RGBA8I 0x8D8E #endif // GL_RGBA8I