Skip to content

Commit

Permalink
swrast: Remove cpu feature check
Browse files Browse the repository at this point in the history
* gcc4 swrast is boring an doesn't do rtasm anymore
  • Loading branch information
kallisti5 committed Dec 22, 2012
1 parent 83b716e commit 9c48978
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/add-ons/opengl/swrast/MesaSoftwareRenderer.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 9c48978

Please sign in to comment.