Commit 6df3f23b authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Add some missing GL locking to init_format_fbo_compat_info().

parent 75529e66
......@@ -592,8 +592,12 @@ static void init_format_fbo_compat_info(WineD3D_GL_Info *gl_info)
if (wined3d_settings.offscreen_rendering_mode == ORM_FBO)
{
ENTER_GL();
GL_EXTCALL(glGenFramebuffersEXT(1, &fbo));
GL_EXTCALL(glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo));
LEAVE_GL();
}
for (i = 0; i < sizeof(formats) / sizeof(*formats); ++i)
......@@ -661,7 +665,11 @@ static void init_format_fbo_compat_info(WineD3D_GL_Info *gl_info)
if (wined3d_settings.offscreen_rendering_mode == ORM_FBO)
{
ENTER_GL();
GL_EXTCALL(glDeleteFramebuffersEXT(1, &fbo));
LEAVE_GL();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment