mesa/main: make _mesa_has_tessellation return bool
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 15 Nov 2018 14:57:10 +0000 (15:57 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 3 Dec 2018 17:16:43 +0000 (18:16 +0100)
All other _mesa_has_foo functions return bool rather than GLboolean, so
let's follow that style here as well.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/context.h

index d50438fd7f957f75f79c74008b28aa557f5b437b..d8a548f1b1b69c37d70a1f9da8cb591e9f6e0869 100644 (file)
@@ -361,7 +361,7 @@ _mesa_has_compute_shaders(const struct gl_context *ctx)
 /**
  * Checks if the context supports tessellation.
  */
-static inline GLboolean
+static inline bool
 _mesa_has_tessellation(const struct gl_context *ctx)
 {
    /* _mesa_has_EXT_tessellation_shader(ctx) is redundant with the OES