This will soon be used in intel_screen.c from a function that doesn't
have a gl_context.
v2: Remove spurious break after return.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
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)
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) {
* intel_context.c:
*/
+extern const char *const i915_vendor_string;
+
extern bool intelInitContext(struct intel_context *intel,
int api,
unsigned major_version,