cogl-buffer: fix compilation for GL ES
In the frenzy of the last 10mins before API freeze, I obviously forgot to update the OpenGL path for _cogl_buffer_hints_to_gl_enum(). This commit fixes this.
This commit is contained in:
parent
1499535fd0
commit
3946a91e68
@ -129,18 +129,13 @@ _cogl_buffer_access_to_gl_enum (CoglBufferAccess access)
|
|||||||
/* OpenGL ES 1.1 and 2 only know about STATIC_DRAW and DYNAMIC_DRAW */
|
/* OpenGL ES 1.1 and 2 only know about STATIC_DRAW and DYNAMIC_DRAW */
|
||||||
#if defined (COGL_HAS_GLES)
|
#if defined (COGL_HAS_GLES)
|
||||||
GLenum
|
GLenum
|
||||||
_cogl_buffer_hint_to_gl_enum (CoglBufferHint usage_hint)
|
_cogl_buffer_hints_to_gl_enum (CoglBufferUsageHint usage_hint,
|
||||||
|
CoglBufferUpdateHint update_hint)
|
||||||
{
|
{
|
||||||
switch (usage_hint)
|
/* usage hint is always TEXTURE for now */
|
||||||
{
|
if (update_hint == COGL_BUFFER_UPDATE_HINT_STATIC)
|
||||||
case COGL_BUFFER_HINT_STATIC_DRAW:
|
|
||||||
return GL_STATIC_DRAW;
|
return GL_STATIC_DRAW;
|
||||||
case COGL_BUFFER_HINT_DYNAMIC_DRAW:
|
return GL_DYNAMIC_DRAW;
|
||||||
case COGL_BUFFER_HINT_STREAM_DRAW:
|
|
||||||
return GL_DYNAMIC_DRAW;
|
|
||||||
default:
|
|
||||||
return GL_STATIC_DRAW;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
GLenum
|
GLenum
|
||||||
|
Loading…
Reference in New Issue
Block a user