Closed Sand3r- closed 8 years ago
can you elaborate on the problem at hand? the code seems fine without your changes. (which miss the calls to glDeleteShader
BTW)
Calls to glDeleteShader were the main cause of the problem, and were therefore omitted.
Since the Framework::CreateProgram function deletes all the passed shaders after the program linking, the repeated call in InitializeProgram() results in attempt of deleting already deleted shaders.
The program g_gammaProgram attempts to reuse already deleted vertexShader, which results in program linking failure, and prevents any further use of it, which eventually results in the bottom stripe not being rendered.
Since the Framework::CreateProgram function deletes all the passed shaders
missed that. thanks :+1:
...Which caused the lower image to be not displayed.