From c741895e45968b50114a1b6ec0307503bce59783 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sat, 3 Feb 2018 23:43:31 +0800 Subject: Fixed texture locking for sure this time. --- smelt/glfw_m/gfx_glfw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smelt/glfw_m') diff --git a/smelt/glfw_m/gfx_glfw.cpp b/smelt/glfw_m/gfx_glfw.cpp index ebd24bf..41b4d7b 100644 --- a/smelt/glfw_m/gfx_glfw.cpp +++ b/smelt/glfw_m/gfx_glfw.cpp @@ -534,7 +534,7 @@ void SMELT_IMPL::smTexutreUnlock(SMTEX tex) if(!ptex->locpx)return; if(!ptex->roloc) { - DWORD *src=ptex->locpx+ptex->locw*ptex->loch, + DWORD *src=ptex->locpx+ptex->locw*(ptex->loch-1), *dst=ptex->px+(((ptex->rh-ptex->locy-1)*ptex->rw)+ptex->locx); for(int i=0;iloch;++i) { -- cgit v1.2.3