Hello guys,
I hope you're all doing well.
So I've been trying to load a 3D Model ( obj file) but when running my application, it crashes and I get this error:
QOpenGLShader::compile(Fragment): ERROR: 0:? : 'variable' : is removed in Forward Compatible context gl_FragColor
*** Problematic Fragment shader source code ***
/*uniform sampler2D qt_Texture0;
varying highp vec4 qt_TexCoord0;
void main(void)
{
gl_FragColor = texture2D(qt_Texture0, qt_TexCoord0.st);
}*/
#version 330 core
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#define lowp
#define mediump
#define highp
#line 9
in vec4 v_color;
void main(void)
{
gl_FragColor=v_color;
}
***
ASSERT failure in QList::operator[]: "index out of range",
This is the fragment shader program:
#version 330 core
in vec4 v_color;
void main(void)
{ gl_FragColor=v_color; }
I don't get what's wrong with my application.
Any suggestion on how to fix this please ?
Thank you all.