As per discussion at [0] methods shouldn't use OpenGL return types, if they're not part of the GL API.
[0] <http://marc.info/?l=mesa3d-dev&m=130754488901774&w=2> CC: Ian Romanick <i...@freedesktop.org> Signed-off-by: Kai Wasserbäch <k...@dev.carbon-project.org> --- docs/devinfo.html | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/docs/devinfo.html b/docs/devinfo.html index 8887dd0..22fe2a5 100644 --- a/docs/devinfo.html +++ b/docs/devinfo.html @@ -114,6 +114,13 @@ Function name examples: _mesa_foo_bar() - an internal non-static Mesa function </pre> +<p> +Non-API methods shouldn't use OpenGL types as their return types. Use the +standard types instead. For example: use "bool" instead of "GLboolean".<br> +The try_emit_* methods in src/mesa/program/ir_to_mesa.cpp and +src/mesa/state_tracker/st_glsl_to_tgsi.cpp can serve as an example. +</p> + <H2>Making a New Mesa Release</H2>
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev