On 07/27/2012 06:47 AM, Brian Paul wrote: > How about a simple inline helper function like this: > > /** > * Check if the OpenGL version is greater than or equal to "major.minor" > */ > static inline GLboolean > _mesa_have_version(const struct gl_context *ctx, int major, int minor) > { > return ctx->Version >= major * 10 + minor; > } > > -Brian
I like it. --Ken _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev