cogl-buffer: Use TEXTURE as the only value for CoglBufferUsageHint

We should try to use more explicit defines than GL for our hints. For
now we only support using a CoglBuffer to generate textures.
This commit is contained in:
Damien Lespiau
2010-02-08 17:11:43 +00:00
parent 273fd23742
commit 23717452bf
3 changed files with 13 additions and 39 deletions

View File

@ -148,7 +148,7 @@ cogl_pixel_buffer_new_EXP (guint size)
/* parent's constructor */
_cogl_buffer_initialize (buffer,
size,
COGL_BUFFER_USAGE_HINT_DRAW,
COGL_BUFFER_USAGE_HINT_TEXTURE,
COGL_BUFFER_UPDATE_HINT_STATIC);
/* malloc version only for GLES */