[cogl/wip/cogl-1.14: 15/50] fix: texture-rectangle: Make new_from_foreign api public
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-1.14: 15/50] fix: texture-rectangle: Make new_from_foreign api public
- Date: Fri, 18 Jan 2013 11:57:01 +0000 (UTC)
commit 558e5b9941a8bea878baf522b40328d005af9443
Author: Robert Bragg <robert linux intel com>
Date: Thu Jan 3 19:19:00 2013 +0000
fix: texture-rectangle: Make new_from_foreign api public
cogl/cogl-texture-rectangle.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/cogl/cogl-texture-rectangle.c b/cogl/cogl-texture-rectangle.c
index 8b10a1f..e87c707 100644
--- a/cogl/cogl-texture-rectangle.c
+++ b/cogl/cogl-texture-rectangle.c
@@ -317,8 +317,8 @@ cogl_texture_rectangle_new_from_foreign (CoglContext *ctx,
GL_TEXTURE_RECTANGLE_ARB))
{
g_set_error (error,
- COGL_SYSTEM_ERROR,
- COGL_SYSTEM_ERROR_UNSUPPORTED,
+ COGL_ERROR,
+ COGL_ERROR_UNSUPPORTED,
"Foreign GL_TEXTURE_RECTANGLE textures are not "
"supported by your system");
return NULL;
@@ -332,8 +332,8 @@ cogl_texture_rectangle_new_from_foreign (CoglContext *ctx,
if (ctx->glGetError () != GL_NO_ERROR)
{
g_set_error (error,
- COGL_SYSTEM_ERROR,
- COGL_SYSTEM_ERROR_UNSUPPORTED,
+ COGL_ERROR,
+ COGL_ERROR_UNSUPPORTED,
"Failed to bind foreign GL_TEXTURE_RECTANGLE texture");
return NULL;
}
@@ -362,8 +362,8 @@ cogl_texture_rectangle_new_from_foreign (CoglContext *ctx,
&format))
{
g_set_error (error,
- COGL_SYSTEM_ERROR,
- COGL_SYSTEM_ERROR_UNSUPPORTED,
+ COGL_ERROR,
+ COGL_ERROR_UNSUPPORTED,
"Unsupported internal format for foreign texture");
return NULL;
}
@@ -394,8 +394,8 @@ cogl_texture_rectangle_new_from_foreign (CoglContext *ctx,
if (gl_compressed == GL_TRUE)
{
g_set_error (error,
- COGL_SYSTEM_ERROR,
- COGL_SYSTEM_ERROR_UNSUPPORTED,
+ COGL_ERROR,
+ COGL_ERROR_UNSUPPORTED,
"Compressed foreign textures aren't currently supported");
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]