Add missing format LUMINANCE8.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 21 Jan 2014 20:41:57 +0000 (21:41 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 21 Jan 2014 20:41:57 +0000 (21:41 +0100)
resource_pool.cpp

index bfd5306..e5f8988 100644 (file)
@@ -144,6 +144,9 @@ GLuint ResourcePool::create_2d_texture(GLint internal_format, GLsizei width, GLs
        case GL_RG16F:
                format = GL_RG;
                break;
+       case GL_LUMINANCE8:
+               format = GL_LUMINANCE;
+               break;
        default:
                // TODO: Add more here as needed.
                assert(false);