From dde2da6c00e6939c2e7ada78eb2650f8fc1f8ca6 Mon Sep 17 00:00:00 2001 From: MorituriTeSalutant Date: Sun, 8 Nov 2015 00:58:56 -0800 Subject: [PATCH] Added NONE as an option in BufferStorageFlags None is a desirable option in this enum because it's used much like BufferUsageHint.StaticDraw for ARB_Buffer_Storage. Using it explicitly in user code is more clear than 0, and makes it more clear to the inexperienced author that none is an option. --- Source/Bind/Specifications/GL2/overrides.xml | 1 + Source/OpenTK/Graphics/OpenGL/GLEnums.cs | 4 ++++ Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/Source/Bind/Specifications/GL2/overrides.xml b/Source/Bind/Specifications/GL2/overrides.xml index e0ba7140..5f7b2da1 100644 --- a/Source/Bind/Specifications/GL2/overrides.xml +++ b/Source/Bind/Specifications/GL2/overrides.xml @@ -2911,6 +2911,7 @@ + diff --git a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs index 2b46f859..d1dbd4b7 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs @@ -29585,6 +29585,10 @@ namespace OpenTK.Graphics.OpenGL /// public enum BufferStorageFlags : int { + /// + /// Original was GL_NONE = 0 + /// + None = ((int)0), /// /// Original was GL_MAP_READ_BIT = 0x0001 /// diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs index bc37c703..90df377d 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs @@ -15632,6 +15632,10 @@ namespace OpenTK.Graphics.OpenGL4 /// public enum BufferStorageFlags : int { + /// + /// Original was GL_NONE = 0 + /// + None = ((int)0), /// /// Original was GL_MAP_READ_BIT = 0x0001 ///