swrast: Remove cpu feature check
* gcc4 swrast is boring an doesn't do rtasm anymore
This commit is contained in:
parent
83b716e3d9
commit
9c48978b6f
@ -469,22 +469,11 @@ MesaSoftwareRenderer::_Error(gl_context* ctx)
|
|||||||
const GLubyte*
|
const GLubyte*
|
||||||
MesaSoftwareRenderer::_GetString(gl_context* ctx, GLenum name)
|
MesaSoftwareRenderer::_GetString(gl_context* ctx, GLenum name)
|
||||||
{
|
{
|
||||||
|
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case GL_VENDOR:
|
case GL_VENDOR:
|
||||||
return (const GLubyte*) "Mesa Project";
|
return (const GLubyte*) "Mesa Project";
|
||||||
case GL_RENDERER: {
|
case GL_RENDERER:
|
||||||
_mesa_get_cpu_features();
|
return (const GLubyte*) "Software Rasterizer";
|
||||||
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;
|
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
// Let core library handle all other cases
|
// Let core library handle all other cases
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user