next question .
I have this method.
initializeProgram
"create each shader and program"
| shaderList strVertexShader strFragmentShader |
strVertexShader := self createShader: GL_VERTEX_SHADER string: ( self
vertexShader ).
strFragmentShader := self createShader: GL_FRAGMENT_SHADER string:
(self
fragmentShader) .
shaderList := #( strVertexShader strFragmentShader ).
self createProgram: shaderList .
shaderList do: [ :each | gl deleteShader: each ].
Each time I try to accept the code it complains that strVertexShader and
strFragmentShader are unused and ask for removing them . Why ?
Is this an IDE bug ? Its clear from the code that I use those two local
variables to pass them to the array shaderList. Am I missing something here
?
--
View this message in context:
http://forum.world.st/Understanding-NBOpenGL-tp4686514p4694650.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.