Skip to content

Commit

Permalink
Followed OpenGLRaw's naming and typing fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
svenpanne committed Feb 3, 2015
1 parent a79c123 commit ddc9909
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Graphics/Rendering/OpenGL/GL/Shaders/Program.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ data GetProgramPName =
| TessGenSpacing
| TessGenVertexOrder
| TessGenPointMode
| ComputeLocalWorkSize -- 3 integers!
| ComputeWorkGroupSize -- 3 integers!
| ProgramSeparable
| ProgramBinaryRetrievableHint
| ActiveAtomicCounterBuffers
Expand Down Expand Up @@ -94,7 +94,7 @@ marshalGetProgramPName x = case x of
TessGenSpacing -> gl_TESS_GEN_SPACING
TessGenVertexOrder -> gl_TESS_GEN_VERTEX_ORDER
TessGenPointMode -> gl_TESS_GEN_POINT_MODE
ComputeLocalWorkSize -> gl_COMPUTE_LOCAL_WORK_SIZE
ComputeWorkGroupSize -> 0x8267 -- gl_COMPUTE_WORK_GROUP_SIZE a.k.a. gl_COMPUTE_LOCAL_WORK_SIZE
ProgramSeparable -> gl_PROGRAM_SEPARABLE
ProgramBinaryRetrievableHint -> gl_PROGRAM_BINARY_RETRIEVABLE_HINT
ActiveAtomicCounterBuffers -> gl_ACTIVE_ATOMIC_COUNTER_BUFFERS
Expand Down
4 changes: 2 additions & 2 deletions src/Graphics/Rendering/OpenGL/GL/Texturing/Specification.hs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ texImage2DMultisample :: TextureTarget2DMultisample
-> IO ()
texImage2DMultisample target proxy (Samples s) int (TextureSize2D w h) loc =
glTexImage2DMultisample
(marshalMultisample proxy target) s (marshalPixelInternalFormat int)
(marshalMultisample proxy target) s (fromIntegral (marshalPixelInternalFormat int))
w h (marshalSampleLocations loc)

marshalMultisample :: ParameterizedTextureTarget t => Proxy -> t -> GLenum
Expand All @@ -316,7 +316,7 @@ texImage3DMultisample :: TextureTarget2DMultisampleArray
-> IO ()
texImage3DMultisample target proxy (Samples s) int (TextureSize3D w h d) loc =
glTexImage3DMultisample
(marshalMultisample proxy target) s (marshalPixelInternalFormat int)
(marshalMultisample proxy target) s (fromIntegral (marshalPixelInternalFormat int))
w h d (marshalSampleLocations loc)

--------------------------------------------------------------------------------
Expand Down

0 comments on commit ddc9909

Please sign in to comment.