aboutsummaryrefslogtreecommitdiff
path: root/smelt/glfw_m
diff options
context:
space:
mode:
Diffstat (limited to 'smelt/glfw_m')
-rw-r--r--smelt/glfw_m/gfx_glfw.cpp2
1 files changed, 1 insertions, 1 deletions
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;i<ptex->loch;++i)
{