[Mesa-dev] [PATCH 1/4] intel_extensions: Change code style of previous commit
Chad Versace
chad at chad-versace.us
Thu Oct 7 16:34:45 PDT 2010
From: Chad Versace <chad at chad-versace.us>
Change coding style according to Kenneth Graunke's suggestions.
---
src/mesa/drivers/dri/intel/intel_extensions.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index dbc46fd..a44087f 100644
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -202,8 +202,9 @@ static const struct dri_extension fragment_shader_extensions[] = {
* to an integer and return it. Otherwise, return the default version, 120.
*/
static GLuint
-getGLSLVersion() {
- const char* s = getenv("INTEL_GLSL_VERSION");
+get_glsl_version()
+{
+ const char * s = getenv("INTEL_GLSL_VERSION");
if (s == NULL)
return 120;
else
@@ -223,7 +224,7 @@ intelInitExtensions(GLcontext *ctx)
_mesa_map_function_array(GL_VERSION_2_1_functions);
- ctx->Const.GLSLVersion = getGLSLVersion();
+ ctx->Const.GLSLVersion = get_glsl_version();
if (intel->gen >= 5)
driInitExtensions(ctx, ironlake_extensions, GL_FALSE);
--
1.7.1
More information about the mesa-dev
mailing list