wined3d: Add ARB_clip_control extension.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2016-10-03 23:46:55 +02:00 committed by Alexandre Julliard
parent 86898c5c7b
commit 94956da913
2 changed files with 5 additions and 0 deletions

View File

@ -109,6 +109,7 @@ static const struct wined3d_extension_map gl_extension_map[] =
/* ARB */ /* ARB */
{"GL_ARB_blend_func_extended", ARB_BLEND_FUNC_EXTENDED }, {"GL_ARB_blend_func_extended", ARB_BLEND_FUNC_EXTENDED },
{"GL_ARB_clip_control", ARB_CLIP_CONTROL },
{"GL_ARB_color_buffer_float", ARB_COLOR_BUFFER_FLOAT }, {"GL_ARB_color_buffer_float", ARB_COLOR_BUFFER_FLOAT },
{"GL_ARB_copy_buffer", ARB_COPY_BUFFER }, {"GL_ARB_copy_buffer", ARB_COPY_BUFFER },
{"GL_ARB_debug_output", ARB_DEBUG_OUTPUT }, {"GL_ARB_debug_output", ARB_DEBUG_OUTPUT },
@ -2580,6 +2581,8 @@ static void load_gl_funcs(struct wined3d_gl_info *gl_info)
/* GL_ARB_blend_func_extended */ /* GL_ARB_blend_func_extended */
USE_GL_FUNC(glBindFragDataLocationIndexed) USE_GL_FUNC(glBindFragDataLocationIndexed)
USE_GL_FUNC(glGetFragDataIndex) USE_GL_FUNC(glGetFragDataIndex)
/* GL_ARB_clip_control */
USE_GL_FUNC(glClipControl)
/* GL_ARB_color_buffer_float */ /* GL_ARB_color_buffer_float */
USE_GL_FUNC(glClampColorARB) USE_GL_FUNC(glClampColorARB)
/* GL_ARB_copy_buffer */ /* GL_ARB_copy_buffer */
@ -3607,6 +3610,7 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter, DWORD
{ARB_TEXTURE_QUERY_LEVELS, MAKEDWORD_VERSION(4, 3)}, {ARB_TEXTURE_QUERY_LEVELS, MAKEDWORD_VERSION(4, 3)},
{ARB_TEXTURE_VIEW, MAKEDWORD_VERSION(4, 3)}, {ARB_TEXTURE_VIEW, MAKEDWORD_VERSION(4, 3)},
{ARB_CLIP_CONTROL, MAKEDWORD_VERSION(4, 5)},
{ARB_DERIVATIVE_CONTROL, MAKEDWORD_VERSION(4, 5)}, {ARB_DERIVATIVE_CONTROL, MAKEDWORD_VERSION(4, 5)},
}; };
struct wined3d_driver_info *driver_info = &adapter->driver_info; struct wined3d_driver_info *driver_info = &adapter->driver_info;

View File

@ -44,6 +44,7 @@ enum wined3d_gl_extension
APPLE_YCBCR_422, APPLE_YCBCR_422,
/* ARB */ /* ARB */
ARB_BLEND_FUNC_EXTENDED, ARB_BLEND_FUNC_EXTENDED,
ARB_CLIP_CONTROL,
ARB_COLOR_BUFFER_FLOAT, ARB_COLOR_BUFFER_FLOAT,
ARB_COPY_BUFFER, ARB_COPY_BUFFER,
ARB_DEBUG_OUTPUT, ARB_DEBUG_OUTPUT,