aboutsummaryrefslogtreecommitdiff
path: root/Spear/GL.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Spear/GL.hs')
-rw-r--r--Spear/GL.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Spear/GL.hs b/Spear/GL.hs
index eb84492..d3a42f0 100644
--- a/Spear/GL.hs
+++ b/Spear/GL.hs
@@ -213,8 +213,8 @@ detachShader prog shader = glDetachShader (getProgram prog) (getShader shader)
213-- 213--
214-- This function creates a new shader. To load source code into an existing shader, 214-- This function creates a new shader. To load source code into an existing shader,
215-- see 'loadSource', 'shaderSource' and 'readSource'. 215-- see 'loadSource', 'shaderSource' and 'readSource'.
216loadShader :: FilePath -> ShaderType -> Game s GLSLShader 216loadShader :: ShaderType -> FilePath -> Game s GLSLShader
217loadShader file shaderType = do 217loadShader shaderType file = do
218 shader <- newShader shaderType 218 shader <- newShader shaderType
219 loadSource file shader 219 loadSource file shader
220 compile file shader 220 compile file shader