aboutsummaryrefslogtreecommitdiff
path: root/smelt/glfw
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-02-03 23:43:31 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-02-03 23:43:31 +0800
commitc741895e45968b50114a1b6ec0307503bce59783 (patch)
tree735dfe6bf02153dba22703dbe724f6c29f399603 /smelt/glfw
parent1eb88d4f5d5cb05d62be1d4a0c88c7399f7c0de0 (diff)
downloadSMELT-c741895e45968b50114a1b6ec0307503bce59783.tar.xz
Fixed texture locking for sure this time.
Diffstat (limited to 'smelt/glfw')
-rw-r--r--smelt/glfw/gfx_glfw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/smelt/glfw/gfx_glfw.cpp b/smelt/glfw/gfx_glfw.cpp
index 485760d..5586112 100644
--- a/smelt/glfw/gfx_glfw.cpp
+++ b/smelt/glfw/gfx_glfw.cpp
@@ -538,7 +538,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)
{