Merge remote-tracking branch 'gzdoom/master' into merge-gzdoom
This commit is contained in:
commit
e75e5a387b
600 changed files with 40006 additions and 59374 deletions
|
|
@ -1016,7 +1016,7 @@ void PPCustomShaderInstance::SetTextures(PPRenderState *renderstate)
|
|||
while (it.NextPair(pair))
|
||||
{
|
||||
FString name = pair->Value;
|
||||
auto gtex = TexMan.GetGameTexture(TexMan.CheckForTexture(name, ETextureType::Any), true);
|
||||
auto gtex = TexMan.GetGameTexture(TexMan.CheckForTexture(name.GetChars(), ETextureType::Any), true);
|
||||
if (gtex && gtex->isValid())
|
||||
{
|
||||
// Why does this completely circumvent the normal way of handling textures?
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ CCMD (shaderenable)
|
|||
for (unsigned int i = 0; i < PostProcessShaders.Size(); i++)
|
||||
{
|
||||
PostProcessShader &shader = PostProcessShaders[i];
|
||||
if (strcmp(shader.Name, shaderName) == 0)
|
||||
if (shader.Name.Compare(shaderName) == 0)
|
||||
{
|
||||
if (value != -1)
|
||||
shader.Enabled = value;
|
||||
|
|
@ -70,7 +70,7 @@ CCMD (shaderuniform)
|
|||
for (unsigned int i = 0; i < PostProcessShaders.Size(); i++)
|
||||
{
|
||||
PostProcessShader &shader = PostProcessShaders[i];
|
||||
if (strcmp(shader.Name, shaderName) == 0)
|
||||
if (shader.Name.Compare(shaderName) == 0)
|
||||
{
|
||||
if (argv.argc() > 3)
|
||||
{
|
||||
|
|
@ -116,7 +116,7 @@ CCMD(listuniforms)
|
|||
for (unsigned int i = 0; i < PostProcessShaders.Size(); i++)
|
||||
{
|
||||
PostProcessShader &shader = PostProcessShaders[i];
|
||||
if (strcmp(shader.Name, shaderName) == 0)
|
||||
if (shader.Name.Compare(shaderName) == 0)
|
||||
{
|
||||
Printf("Shader '%s' uniforms:\n", shaderName);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue