namespace GL {
OpenGLBatch::OpenGLBatch(PrimitiveType t):
- gl_prim_type(GL::get_gl_primitive_type(t)),
+ gl_prim_type(get_gl_primitive_type(t)),
gl_index_type(GL_UNSIGNED_SHORT)
{ }
}
}
-GLenum get_gl_components(PixelComponents comp)
+unsigned get_gl_components(PixelComponents comp)
{
switch(comp)
{
}
}
-GLenum get_gl_pixelformat(PixelFormat pf)
+unsigned get_gl_pixelformat(PixelFormat pf)
{
switch(pf)
{
void OpenGLSampler::set_debug_name(const string &name)
{
#ifdef DEBUG
- if(id && KHR_debug)
+ if(KHR_debug)
glObjectLabel(GL_SAMPLER, id, name.size(), name.c_str());
#else
(void)name;