diff options
author | Ian Romanick <[email protected]> | 2014-03-04 15:39:37 +0200 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-05-02 11:58:36 -0700 |
commit | 59ad2e6696c51dc9b3514770abb550df663ecc7b (patch) | |
tree | 13337e5cea8865b2c544bec4e5f108c68ad07f8b /src/mesa/main/errors.h | |
parent | 267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7 (diff) |
mesa: Add _mesa_error_no_memory for logging out-of-memory messages
This can be called from locations that don't have a context pointer
handy. This patch also adds enough infrastructure so that the unit
tests for the GLSL compiler and the stand-alone compiler will build and
function.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Juha-Pekka Heikkila <[email protected]>
Diffstat (limited to 'src/mesa/main/errors.h')
-rw-r--r-- | src/mesa/main/errors.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/errors.h b/src/mesa/main/errors.h index 06d0b21fcae..b388138e84d 100644 --- a/src/mesa/main/errors.h +++ b/src/mesa/main/errors.h @@ -64,6 +64,9 @@ extern void _mesa_error( struct gl_context *ctx, GLenum error, const char *fmtString, ... ) PRINTFLIKE(3, 4); extern void +_mesa_error_no_memory(const char *caller); + +extern void _mesa_debug( const struct gl_context *ctx, const char *fmtString, ... ) PRINTFLIKE(2, 3); extern void |