summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-14 10:45:17 -0600
committerBrian Paul <[email protected]>2009-08-14 11:27:33 -0600
commit56c4226fcc54158eb7fe54eeb13539a979ec155c (patch)
tree435506bb41bdcae7999f321650a0cd597f60b40a /src/mesa/main/context.h
parenta48b0a5ce7fc17eab4daa375fb95768fa2f50825 (diff)
mesa: new _mesa_valid_to_render() function
Tests if the current shader/program is valid and that the framebuffer is complete. To be called by glBegin, glDrawArrays, etc.
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index 0531ae8ee86..5587695fa0b 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -159,6 +159,11 @@ _mesa_set_mvp_with_dp4( GLcontext *ctx,
GLboolean flag );
+extern GLboolean
+_mesa_valid_to_render(GLcontext *ctx, const char *where);
+
+
+
/** \name Miscellaneous */
/*@{*/
@@ -174,7 +179,6 @@ _mesa_Flush( void );
/*@}*/
-
/**
* \name Macros for flushing buffered rendering commands before state changes,
* checking if inside glBegin/glEnd, etc.