forked from 0ad/0ad
now verify glActiveTexture != 0 in GL extension check (in response to bug #18)
This was SVN commit r1055.
This commit is contained in:
parent
85b570f2e9
commit
918cb99c7f
@ -858,7 +858,9 @@ sle(11340106);
|
||||
|
||||
write_sys_info();
|
||||
|
||||
if(!oglExtAvail("GL_ARB_multitexture") || !oglExtAvail("GL_ARB_texture_env_combine"))
|
||||
if(!oglExtAvail("GL_ARB_multitexture") || !oglExtAvail("GL_ARB_texture_env_combine") ||
|
||||
!glActiveTexture) // prevent crashing later if multitexture support is falsely
|
||||
// advertised (janwas 2004-08-25, for bug #18)
|
||||
{
|
||||
LOG(ERROR, LOG_CATEGORY, "Required ARB_multitexture or ARB_texture_env_combine extension not available");
|
||||
throw PSERROR_System_RequiredExtensionsMissing();
|
||||
|
Loading…
Reference in New Issue
Block a user