Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualErik Rufelt

Posted 02 September 2013 - 07:46 AM

In your shader, using your own uniform is correct, don't use gl_*. Use #version 400 core and they should give compiler errors as they're removed from the language.

 

Anyway your problem seems to be this:

 glDetachShader(programId, vertexShaderId);
 glDetachShader(programId, fragmentShaderId);

Remove that code.


#2Erik Rufelt

Posted 02 September 2013 - 07:46 AM

In your shader, using your own uniform is correct, don't use gl_*. Use #version 400 core and they should give compiler errors as they're removed from the language.

 

Anyway your problem seems to be this:

    glDetachShader(programId, vertexShaderId);
    glDetachShader(programId, fragmentShaderId);

Remove that code.


#1Erik Rufelt

Posted 02 September 2013 - 05:59 AM

In your shader, using your own uniform is correct, don't use gl_*. Use #version 400 core and they should give compiler errors as they're removed from the language.

 

Anyway your problem seems to be this:

    glDetachShader(programId, vertexShaderId);
    glDetachShader(programId, fragmentShaderId);

Remove that code.


PARTNERS