Fix length error in prefix comparison

This commit is contained in:
dekadenZ 2014-04-25 02:39:49 +02:00
parent a8cda090c1
commit 20e5cf5ae2

View file

@ -402,7 +402,7 @@ static void R_CheckPortableExtensions()
}
// RB: Mesa support
if( idStr::Icmpn( glConfig.renderer_string, "Mesa", 4 ) == 0 || idStr::Icmpn( glConfig.renderer_string, "X.org", 4 ) == 0 )
if( idStr::Icmpn( glConfig.renderer_string, "Mesa", 4 ) == 0 || idStr::Icmpn( glConfig.renderer_string, "X.org", 5 ) == 0 )
{
glConfig.driverType = GLDRV_OPENGL_MESA;
}