1
0
forked from 0ad/0ad

Removes FFP shader program. Fixes #5791

This was SVN commit r25717.
This commit is contained in:
Vladislav Belov 2021-06-06 19:49:43 +00:00
parent cc4087f3fe
commit 8597cd2c2e
3 changed files with 1 additions and 1211 deletions

View File

@ -112,15 +112,6 @@ bool CShaderManager::NewProgram(const char* name, const CShaderDefines& baseDefi
PROFILE2("loading shader");
PROFILE2_ATTR("name: %s", name);
if (strncmp(name, "fixed:", 6) == 0)
{
program = CShaderProgramPtr(CShaderProgram::ConstructFFP(name+6, baseDefines));
if (!program)
return false;
program->Reload();
return true;
}
VfsPath xmlFilename = L"shaders/" + wstring_from_utf8(name) + L".xml";
CXeromyces XeroFile;
@ -456,14 +447,7 @@ bool CShaderManager::NewEffect(const char* name, const CShaderDefines& baseDefin
if (Child.GetNodeName() == el_require)
{
if (Attrs.GetNamedItem(at_shaders) == "fixed")
{
// FFP not supported by OpenGL ES
#if CONFIG2_GLES
isUsable = false;
#endif
}
else if (Attrs.GetNamedItem(at_shaders) == "arb")
if (Attrs.GetNamedItem(at_shaders) == "arb")
{
if (!hasARB)
isUsable = false;

View File

@ -89,17 +89,11 @@ public:
const std::map<CStrIntern, int>& vertexAttribs,
int streamflags);
/**
* Construct an instance of a pre-defined fixed-function pipeline setup.
*/
static CShaderProgram* ConstructFFP(const std::string& id, const CShaderDefines& defines);
/**
* Represents a uniform attribute or texture binding.
* For uniforms:
* - ARB shaders store vertex location in 'first', fragment location in 'second'.
* - GLSL shaders store uniform location in 'first', data type in 'second'.
* - FFP shaders store -1 in 'first', index in 'second'.
* For textures, all store texture target (e.g. GL_TEXTURE_2D) in 'first', texture unit in 'second'.
* Non-existent bindings must store -1 in both.
*/

File diff suppressed because it is too large Load Diff