Start migration to openGLraw, add target parameter to texture params
This commit is contained in:
+4
-2
@@ -41,8 +41,10 @@ drawShader fs i = do
|
||||
currentProgram $= Just (_shadProg fs)
|
||||
bindVertexArrayObject $= Just (_vao $ _shadVAO fs)
|
||||
case _shadTex fs of
|
||||
Just ShaderTexture{_textureObject = txo}
|
||||
-> textureBinding Texture2D $= Just txo
|
||||
Just ShaderTexture{_textureObject = TextureObject txo
|
||||
, _textureTarget = tt }
|
||||
-- -> textureBinding Texture2D $= Just txo
|
||||
-> glBindTexture tt txo
|
||||
_ -> return ()
|
||||
glDrawArrays
|
||||
(marshalEPrimitiveMode $ _shadPrim fs)
|
||||
|
||||
Reference in New Issue
Block a user