Skip to content
Permalink
Browse files

gsdx ogl: commit texture in copy function

So far not yet used but safer this way
  • Loading branch information...
gregory38 authored and lightningterror committed Apr 10, 2019
1 parent 568b96b commit ead3d21bdbc850e5fc0a6fc365e1b6148bf5036a
Showing with 4 additions and 0 deletions.
  1. +4 −0 plugins/GSdx/Renderers/OpenGL/GSDeviceOGL.cpp
@@ -1221,6 +1221,8 @@ void GSDeviceOGL::CopyRectConv(GSTexture* sTex, GSTexture* dTex, const GSVector4

GL_PUSH(format("CopyRectConv from %d to %d", sid, did).c_str());

dTex->CommitRegion(GSVector2i(r.z, r.w));

glBindFramebuffer(GL_READ_FRAMEBUFFER, m_fbo_read);

glFramebufferTexture2D(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, sid, 0);
@@ -1248,6 +1250,8 @@ void GSDeviceOGL::CopyRect(GSTexture* sTex, GSTexture* dTex, const GSVector4i& r
PSSetShaderResource(6, sTex);
#endif

dTex->CommitRegion(GSVector2i(r.z, r.w));

ASSERT(GLExtension::Has("GL_ARB_copy_image") && glCopyImageSubData);
glCopyImageSubData( sid, GL_TEXTURE_2D,
0, r.x, r.y, 0,

0 comments on commit ead3d21

Please sign in to comment.
You can’t perform that action at this time.