From 9c48978b6f2dd89ec2b86d4862cd0503dd6e4a8d Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 19 Dec 2012 23:30:31 -0600 Subject: [PATCH] swrast: Remove cpu feature check * gcc4 swrast is boring an doesn't do rtasm anymore --- .../opengl/swrast/MesaSoftwareRenderer.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/add-ons/opengl/swrast/MesaSoftwareRenderer.cpp b/src/add-ons/opengl/swrast/MesaSoftwareRenderer.cpp index e15f44d10c..0b21ff46ca 100644 --- a/src/add-ons/opengl/swrast/MesaSoftwareRenderer.cpp +++ b/src/add-ons/opengl/swrast/MesaSoftwareRenderer.cpp @@ -469,22 +469,11 @@ MesaSoftwareRenderer::_Error(gl_context* ctx) const GLubyte* MesaSoftwareRenderer::_GetString(gl_context* ctx, GLenum name) { - switch (name) { case GL_VENDOR: return (const GLubyte*) "Mesa Project"; - case GL_RENDERER: { - _mesa_get_cpu_features(); - static char buffer[256] = { '\0' }; - - if (!buffer[0]) { - char* cpuInfo = _mesa_get_cpu_string(); - // Let's build an renderer string - sprintf(buffer, "Software Rasterizer for %s", cpuInfo); - free(cpuInfo); - } - return (const GLubyte*) buffer; - } + case GL_RENDERER: + return (const GLubyte*) "Software Rasterizer"; default: // Let core library handle all other cases return NULL;