diff options
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_context.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_context.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_context.c b/src/mesa/drivers/dri/i915/intel_context.c index 15d40748bcb..420ab2a0c47 100644 --- a/src/mesa/drivers/dri/i915/intel_context.c +++ b/src/mesa/drivers/dri/i915/intel_context.c @@ -60,6 +60,7 @@ int INTEL_DEBUG = (0); +const char *const i915_vendor_string = "Intel Open Source Technology Center"; static const GLubyte * intelGetString(struct gl_context * ctx, GLenum name) @@ -70,8 +71,7 @@ intelGetString(struct gl_context * ctx, GLenum name) switch (name) { case GL_VENDOR: - return (GLubyte *) "Intel Open Source Technology Center"; - break; + return (GLubyte *) i915_vendor_string; case GL_RENDERER: switch (intel->intelScreen->deviceID) { diff --git a/src/mesa/drivers/dri/i915/intel_context.h b/src/mesa/drivers/dri/i915/intel_context.h index 0b83a3ef656..e386e46782e 100644 --- a/src/mesa/drivers/dri/i915/intel_context.h +++ b/src/mesa/drivers/dri/i915/intel_context.h @@ -393,6 +393,8 @@ extern int INTEL_DEBUG; * intel_context.c: */ +extern const char *const i915_vendor_string; + extern bool intelInitContext(struct intel_context *intel, int api, unsigned major_version, |