Change S3TC warning yet again, to point to a web page with more information. Also stop hard-coding the message.
This was SVN commit r8367.
This commit is contained in:
parent
fbe809287c
commit
835609df20
@ -33,3 +33,21 @@ function updateFPS()
|
||||
}
|
||||
|
||||
// ====================================================================
|
||||
|
||||
function s3tcWarning(isMesa)
|
||||
{
|
||||
var msg =
|
||||
"Your graphics drivers do not support S3TC compressed textures. " +
|
||||
"The game will work correctly, but may have reduced performance.\n\n" +
|
||||
(isMesa ?
|
||||
"To fix this, you may have to install the \"libtxc_dxtn\" library. " +
|
||||
"See http://trac.wildfiregames.com/wiki/CompressedTextures for more information."
|
||||
:
|
||||
"Please try updating your graphics drivers to ensure you have full hardware acceleration."
|
||||
);
|
||||
|
||||
messageBox(560, 270, msg, "Warning", 0,
|
||||
["Open web page", "Ignore warning"],
|
||||
[function() { Engine.OpenURL("http://trac.wildfiregames.com/wiki/CompressedTextures"); }, undefined]
|
||||
);
|
||||
}
|
||||
|
@ -493,15 +493,12 @@ static void InitPs(bool setup_gui, const CStrW& gui_page)
|
||||
// Warn nicely about missing S3TC support
|
||||
if (!ogl_tex_has_s3tc())
|
||||
{
|
||||
g_GUI->DisplayMessageBox(600, 270, L"Warning",
|
||||
L"Your graphics drivers do not support S3TC compressed textures. This may reduce performance.\n\n"
|
||||
#if !(OS_WIN || OS_MACOSX)
|
||||
L"To fix this, you may have to install the \"libtxc_dxtn\" library. "
|
||||
L"See http://dri.freedesktop.org/wiki/S3TC for more information."
|
||||
bool isMesa = true;
|
||||
#else
|
||||
L"Please try updating your graphics drivers to ensure you have full hardware acceleration."
|
||||
bool isMesa = false;
|
||||
#endif
|
||||
);
|
||||
g_GUI->GetScriptInterface().CallFunctionVoid(OBJECT_TO_JSVAL(g_GUI->GetScriptObject()), "s3tcWarning", isMesa);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user