=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Add ARB_clear_buffer_object extension.

Alexandre Julliard julliard at winehq.org
Fri May 12 11:48:07 CDT 2017


Module: wine
Branch: master
Commit: cc8fbe7887e40965b5d09b777c69a360f80598f4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cc8fbe7887e40965b5d09b777c69a360f80598f4

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Fri May 12 15:09:19 2017 +0200

wined3d: Add ARB_clear_buffer_object extension.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/directx.c    | 5 +++++
 dlls/wined3d/wined3d_gl.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index dd3fa49..535ea7d 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -111,6 +111,7 @@ static const struct wined3d_extension_map gl_extension_map[] =
 
     /* ARB */
     {"GL_ARB_blend_func_extended",          ARB_BLEND_FUNC_EXTENDED       },
+    {"GL_ARB_clear_buffer_object",          ARB_CLEAR_BUFFER_OBJECT       },
     {"GL_ARB_clear_texture",                ARB_CLEAR_TEXTURE             },
     {"GL_ARB_clip_control",                 ARB_CLIP_CONTROL              },
     {"GL_ARB_color_buffer_float",           ARB_COLOR_BUFFER_FLOAT        },
@@ -2681,6 +2682,9 @@ static void load_gl_funcs(struct wined3d_gl_info *gl_info)
     /* GL_ARB_blend_func_extended */
     USE_GL_FUNC(glBindFragDataLocationIndexed)
     USE_GL_FUNC(glGetFragDataIndex)
+    /* GL_ARB_clear_buffer_object */
+    USE_GL_FUNC(glClearBufferData)
+    USE_GL_FUNC(glClearBufferSubData)
     /* GL_ARB_clear_texture */
     USE_GL_FUNC(glClearTexImage)
     USE_GL_FUNC(glClearTexSubImage)
@@ -3874,6 +3878,7 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter,
         {ARB_TEXTURE_COMPRESSION_BPTC,     MAKEDWORD_VERSION(4, 2)},
         {ARB_TEXTURE_STORAGE,              MAKEDWORD_VERSION(4, 2)},
 
+        {ARB_CLEAR_BUFFER_OBJECT,          MAKEDWORD_VERSION(4, 3)},
         {ARB_COMPUTE_SHADER,               MAKEDWORD_VERSION(4, 3)},
         {ARB_DEBUG_OUTPUT,                 MAKEDWORD_VERSION(4, 3)},
         {ARB_ES3_COMPATIBILITY,            MAKEDWORD_VERSION(4, 3)},
diff --git a/dlls/wined3d/wined3d_gl.h b/dlls/wined3d/wined3d_gl.h
index 5a2307a..52fb5fd 100644
--- a/dlls/wined3d/wined3d_gl.h
+++ b/dlls/wined3d/wined3d_gl.h
@@ -44,6 +44,7 @@ enum wined3d_gl_extension
     APPLE_YCBCR_422,
     /* ARB */
     ARB_BLEND_FUNC_EXTENDED,
+    ARB_CLEAR_BUFFER_OBJECT,
     ARB_CLEAR_TEXTURE,
     ARB_CLIP_CONTROL,
     ARB_COLOR_BUFFER_FLOAT,




More information about the wine-cvs mailing list