Mac: Due to driver-imposed point sprite size limits, do not use point sprite stars on ATI RV3xx renderers.
parent
4439a6e333
commit
48d4d8a8ac
|
@ -779,6 +779,21 @@ bool Renderer::init(GLContext* _context,
|
|||
// we set the useRescaleNormal flag.
|
||||
useRescaleNormal = true;
|
||||
}
|
||||
#ifdef TARGET_OS_MAC
|
||||
if (strstr(glRenderer, "Radeon 9600") != NULL ||
|
||||
strstr(glRenderer, "Radeon 9700") != NULL ||
|
||||
strstr(glRenderer, "Radeon 9800") != NULL ||
|
||||
strstr(glRenderer, "Radeon X600") != NULL)
|
||||
{
|
||||
// ATI RV3xx drivers on the Mac appear to limit point sprite size.
|
||||
// This causes an abrupt size transition when going from billboards
|
||||
// to sprites. Rather than incur overhead accounting for the size limit,
|
||||
// do not use sprites on these renderers.
|
||||
// Affected cards: 9550-9800, X300, X600, X1050 etc
|
||||
// Renderer strings are not unique and only 4 should cover all cases
|
||||
usePointSprite = false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// More ugly hacks; according to Matt Craighead at NVIDIA, an NVIDIA
|
||||
|
|
Loading…
Reference in New Issue