X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resource_pool.cpp;h=b515769e4e8d49a6664e418d02745a171df1fb86;hp=04b1aa9754b4a51bb5fe54a875047db414700777;hb=ee7863d9cdd683dd4df9d6463d98dc59182c54fe;hpb=28f1e12c8aeddc47bfced50e33a94c75b501a0df diff --git a/resource_pool.cpp b/resource_pool.cpp index 04b1aa9..b515769 100644 --- a/resource_pool.cpp +++ b/resource_pool.cpp @@ -6,8 +6,8 @@ #include #include #include +#include -#include "glew.h" #include "init.h" #include "resource_pool.h" #include "util.h" @@ -190,8 +190,8 @@ GLuint ResourcePool::create_2d_texture(GLint internal_format, GLsizei width, GLs case GL_RG16F: format = GL_RG; break; - case GL_LUMINANCE8: - format = GL_LUMINANCE; + case GL_R8: + format = GL_RED; break; default: // TODO: Add more here as needed. @@ -259,7 +259,7 @@ size_t ResourcePool::estimate_texture_size(const Texture2D &texture_format) case GL_RG16F: bytes_per_pixel = 4; break; - case GL_LUMINANCE8: + case GL_R8: bytes_per_pixel = 1; break; default: