Commit 0d846d95 authored by Zhigang Gong's avatar Zhigang Gong Committed by Eric Anholt

Added --enable-debug configuration option.

For release version, we disable asserts.
Signed-off-by: default avatarZhigang Gong <zhigang.gong@linux.intel.com>
parent 503f8ec1
...@@ -287,7 +287,8 @@ glamor_egl_create_textured_pixmap(PixmapPtr pixmap, int handle, int stride) ...@@ -287,7 +287,8 @@ glamor_egl_create_textured_pixmap(PixmapPtr pixmap, int handle, int stride)
xf86DrvMsg(scrn->scrnIndex, X_ERROR, xf86DrvMsg(scrn->scrnIndex, X_ERROR,
"Couldn't flink pixmap handle\n"); "Couldn't flink pixmap handle\n");
glamor_set_pixmap_type(pixmap, GLAMOR_DRM_ONLY); glamor_set_pixmap_type(pixmap, GLAMOR_DRM_ONLY);
exit(1); assert(0);
return FALSE;
} }
} else } else
name = handle; name = handle;
......
...@@ -32,7 +32,9 @@ ...@@ -32,7 +32,9 @@
#endif #endif
#include <xorg-server.h> #include <xorg-server.h>
#ifndef DEBUG
#define NDEBUG
#endif
#include "glamor.h" #include "glamor.h"
#define GL_GLEXT_PROTOTYPES #define GL_GLEXT_PROTOTYPES
......
...@@ -427,7 +427,7 @@ glamor_init_composite_shaders(ScreenPtr screen) ...@@ -427,7 +427,7 @@ glamor_init_composite_shaders(ScreenPtr screen)
} }
if (eb == NULL) if (eb == NULL)
FatalError("fatal error, fail to get eb.\n"); FatalError("fatal error, fail to get element buffer. GL context may be not created correctly.\n");
glamor_init_eb(eb, GLAMOR_COMPOSITE_VBO_VERT_CNT); glamor_init_eb(eb, GLAMOR_COMPOSITE_VBO_VERT_CNT);
if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) { if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment