Skip to content

nvFxcc crash if card support Ogl 3.0 #1

@craouette

Description

@craouette

cause: glProgramParameteri is not set...
change (so that nvFxcc does not crash, and report an error) in GLSLProgram.cpp, line 73:

GLSLProgram::GLSLProgram(Container *pCont) : Program(pCont)
{
m_program = glCreateProgram();
m_linkNeeded = true;
m_usable = false;
//m_bound = false;
#ifdef USE_OLDPROGRAM
m_separable = false;
#else
if (pCont)
{
m_separable = pCont->separateShadersEnabled();
if(!glProgramParameteri)
{
LOGI("Warning : ARB_separate_shader_objects not available\n");
m_separable = false;
pCont->separateShadersEnable(false);
}
if(m_separable)
{
glProgramParameteri(m_program, GL_PROGRAM_SEPARABLE, m_separable);
if((glGetError()==GL_INVALID_ENUM)||(glGenProgramPipelines == NULL))
{
LOGI("Warning : ARB_separate_shader_objects not available\n");
m_separable = false;
pCont->separateShadersEnable(false);
}
}
}
#endif
m_shaderFlags = 0;

ifdef SHADERCONCAT_USE

m_vtxShader = 0;
m_fragShader = 0;

endif

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions