Skip to content

Commit 0d8c3c5

Browse files
committed
Added support for EXT_packed_depth_stencil extension.
1 parent 35c5192 commit 0d8c3c5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
3.0.2.0
22
-------
3-
* Added `PixelInternalFormat` constructors for S3_s3tc, EXT_texture_compression_s3tc, and ARB_texture_float extensions.
3+
* Added `PixelInternalFormat` constructors for S3_s3tc, EXT_texture_compression_s3tc,
4+
ARB_texture_float, and EXT_packed_depth_stencil extensions.
45

56
3.0.1.0
67
-------

src/Graphics/Rendering/OpenGL/GL/Texturing/PixelInternalFormat.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ data PixelInternalFormat =
151151
| Intensity16F
152152
| Luminance16F
153153
| LuminanceAlpha16F
154+
| Depth24Stencil8
154155
deriving ( Eq, Ord, Show )
155156

156157
marshalPixelInternalFormat :: PixelInternalFormat -> GLint
@@ -283,6 +284,7 @@ marshalPixelInternalFormat x = fromIntegral $ case x of
283284
Intensity16F -> GL_INTENSITY16F_ARB
284285
Luminance16F -> GL_LUMINANCE16F_ARB
285286
LuminanceAlpha16F -> GL_LUMINANCE_ALPHA16F_ARB
287+
Depth24Stencil8 -> GL_DEPTH24_STENCIL8_EXT
286288

287289
-- *sigh* The OpenGL API is sometimes a bit creative in its usage of types...
288290
marshalPixelInternalFormat' :: PixelInternalFormat -> GLenum
@@ -413,6 +415,7 @@ unmarshalPixelInternalFormat x
413415
| y == GL_INTENSITY16F_ARB = Intensity16F
414416
| y == GL_LUMINANCE16F_ARB = Luminance16F
415417
| y == GL_LUMINANCE_ALPHA16F_ARB = LuminanceAlpha16F
418+
| y == GL_DEPTH24_STENCIL8_EXT = Depth24Stencil8
416419
-- legacy values
417420
| y == 1 = Luminance'
418421
| y == 2 = LuminanceAlpha'

0 commit comments

Comments
 (0)