wined3d: Add ARB_framebuffer_no_attachments extension.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-02-28 12:12:39 +01:00 committed by Alexandre Julliard
parent d75ec29384
commit beb83eb4ae
2 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,7 @@ static const struct wined3d_extension_map gl_extension_map[] =
{"GL_ARB_fragment_layer_viewport", ARB_FRAGMENT_LAYER_VIEWPORT }, {"GL_ARB_fragment_layer_viewport", ARB_FRAGMENT_LAYER_VIEWPORT },
{"GL_ARB_fragment_program", ARB_FRAGMENT_PROGRAM }, {"GL_ARB_fragment_program", ARB_FRAGMENT_PROGRAM },
{"GL_ARB_fragment_shader", ARB_FRAGMENT_SHADER }, {"GL_ARB_fragment_shader", ARB_FRAGMENT_SHADER },
{"GL_ARB_framebuffer_no_attachments", ARB_FRAMEBUFFER_NO_ATTACHMENTS},
{"GL_ARB_framebuffer_object", ARB_FRAMEBUFFER_OBJECT }, {"GL_ARB_framebuffer_object", ARB_FRAMEBUFFER_OBJECT },
{"GL_ARB_framebuffer_sRGB", ARB_FRAMEBUFFER_SRGB }, {"GL_ARB_framebuffer_sRGB", ARB_FRAMEBUFFER_SRGB },
{"GL_ARB_geometry_shader4", ARB_GEOMETRY_SHADER4 }, {"GL_ARB_geometry_shader4", ARB_GEOMETRY_SHADER4 },
@ -2737,6 +2738,8 @@ static void load_gl_funcs(struct wined3d_gl_info *gl_info)
USE_GL_FUNC(glGetShaderPrecisionFormat) USE_GL_FUNC(glGetShaderPrecisionFormat)
USE_GL_FUNC(glDepthRangef) USE_GL_FUNC(glDepthRangef)
USE_GL_FUNC(glClearDepthf) USE_GL_FUNC(glClearDepthf)
/* GL_ARB_framebuffer_no_attachments */
USE_GL_FUNC(glFramebufferParameteri)
/* GL_ARB_framebuffer_object */ /* GL_ARB_framebuffer_object */
USE_GL_FUNC(glBindFramebuffer) USE_GL_FUNC(glBindFramebuffer)
USE_GL_FUNC(glBindRenderbuffer) USE_GL_FUNC(glBindRenderbuffer)
@ -3918,6 +3921,7 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter,
{ARB_DEBUG_OUTPUT, MAKEDWORD_VERSION(4, 3)}, {ARB_DEBUG_OUTPUT, MAKEDWORD_VERSION(4, 3)},
{ARB_ES3_COMPATIBILITY, MAKEDWORD_VERSION(4, 3)}, {ARB_ES3_COMPATIBILITY, MAKEDWORD_VERSION(4, 3)},
{ARB_FRAGMENT_LAYER_VIEWPORT, MAKEDWORD_VERSION(4, 3)}, {ARB_FRAGMENT_LAYER_VIEWPORT, MAKEDWORD_VERSION(4, 3)},
{ARB_FRAMEBUFFER_NO_ATTACHMENTS, MAKEDWORD_VERSION(4, 3)},
{ARB_INTERNALFORMAT_QUERY2, MAKEDWORD_VERSION(4, 3)}, {ARB_INTERNALFORMAT_QUERY2, MAKEDWORD_VERSION(4, 3)},
{ARB_SHADER_IMAGE_SIZE, MAKEDWORD_VERSION(4, 3)}, {ARB_SHADER_IMAGE_SIZE, MAKEDWORD_VERSION(4, 3)},
{ARB_SHADER_STORAGE_BUFFER_OBJECT, MAKEDWORD_VERSION(4, 3)}, {ARB_SHADER_STORAGE_BUFFER_OBJECT, MAKEDWORD_VERSION(4, 3)},

View File

@ -68,6 +68,7 @@ enum wined3d_gl_extension
ARB_FRAGMENT_LAYER_VIEWPORT, ARB_FRAGMENT_LAYER_VIEWPORT,
ARB_FRAGMENT_PROGRAM, ARB_FRAGMENT_PROGRAM,
ARB_FRAGMENT_SHADER, ARB_FRAGMENT_SHADER,
ARB_FRAMEBUFFER_NO_ATTACHMENTS,
ARB_FRAMEBUFFER_OBJECT, ARB_FRAMEBUFFER_OBJECT,
ARB_FRAMEBUFFER_SRGB, ARB_FRAMEBUFFER_SRGB,
ARB_GEOMETRY_SHADER4, ARB_GEOMETRY_SHADER4,