1
0
forked from 0ad/0ad

# Work around a problem in ATI's binary Linux driver

This was SVN commit r3789.
This commit is contained in:
prefect 2006-04-21 03:06:57 +00:00
parent 8f02c6f10d
commit 8bb97e63cd
4 changed files with 104 additions and 102 deletions

View File

@ -55,7 +55,7 @@ void cpu_init()
// possible. that means only zero-divide, because the JS engine is
// triggering the rest.
// note: passing a flag *disables* that exception.
ia32_control87(IA32_EM_INVALID|IA32_EM_DENORMAL|IA32_EM_OVERFLOW|IA32_EM_UNDERFLOW|IA32_EM_INEXACT, IA32_MCW_EM);
ia32_control87(IA32_EM_ZERODIVIDE|IA32_EM_INVALID|IA32_EM_DENORMAL|IA32_EM_OVERFLOW|IA32_EM_UNDERFLOW|IA32_EM_INEXACT, IA32_MCW_EM);
// no longer round toward zero (truncate). changing this setting
// resulted in much faster float->int casts, because the compiler

View File

@ -858,6 +858,8 @@ void CMouseoverEntities::renderBarBorders()
glDisable( GL_BLEND );
}
// Helper function for CSelectedEntities::loadUnitUITextures
static void LoadUnitUIThunk( const char* path, const DirEnt* UNUSED(ent), void* context )
{
std::map<CStr, Handle>* textures = (std::map<CStr, Handle>*) context;