From bfaff0bd66a41c49f5af3231a4bd16c44d56be62 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Wed, 7 May 2014 23:21:24 +0200 Subject: [PATCH] [GL] Added generic RenderbufferStorage depth-stencil formats According to the OpenGL 4.4 specification, RenderbufferStorage accepts both generic and sized depth-stencil formats (DepthComponent and DepthStencil). See sections 9.2.4, 9.2.5 and 9.4. --- Source/Bind/Specifications/GL2/overrides.xml | 2 ++ Source/OpenTK/Graphics/OpenGL/GLEnums.cs | 8 ++++++++ Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs | 8 ++++++++ 3 files changed, 18 insertions(+) diff --git a/Source/Bind/Specifications/GL2/overrides.xml b/Source/Bind/Specifications/GL2/overrides.xml index 5cd70424..1d956a18 100644 --- a/Source/Bind/Specifications/GL2/overrides.xml +++ b/Source/Bind/Specifications/GL2/overrides.xml @@ -4339,10 +4339,12 @@ + + diff --git a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs index f8a01332..6d9dc61b 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs @@ -48573,6 +48573,10 @@ namespace OpenTK.Graphics.OpenGL /// public enum RenderbufferStorage : int { + /// + /// Original was GL_DEPTH_COMPONENT = 0x1902 + /// + DepthComponent = ((int)0x1902) , /// /// Original was GL_R3_G3_B2 = 0x2A10 /// @@ -48734,6 +48738,10 @@ namespace OpenTK.Graphics.OpenGL /// Rg32ui = ((int)0x823C) , /// + /// Original was GL_DEPTH_STENCIL = 0x84F9 + /// + DepthStencil = ((int)0x84F9) , + /// /// Original was GL_RGBA32F = 0x8814 /// Rgba32f = ((int)0x8814) , diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs index c2098867..95e98b96 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs @@ -25329,6 +25329,10 @@ namespace OpenTK.Graphics.OpenGL4 /// public enum RenderbufferStorage : int { + /// + /// Original was GL_DEPTH_COMPONENT = 0x1902 + /// + DepthComponent = ((int)0x1902) , /// /// Original was GL_R3_G3_B2 = 0x2A10 /// @@ -25474,6 +25478,10 @@ namespace OpenTK.Graphics.OpenGL4 /// Rg32ui = ((int)0x823C) , /// + /// Original was GL_DEPTH_STENCIL = 0x84F9 + /// + DepthStencil = ((int)0x84F9) , + /// /// Original was GL_RGBA32F = 0x8814 /// Rgba32f = ((int)0x8814) ,