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. --- extensions/smttfont.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'extensions') diff --git a/extensions/smttfont.cpp b/extensions/smttfont.cpp index 02aa54a..566aab1 100644 --- a/extensions/smttfont.cpp +++ b/extensions/smttfont.cpp @@ -132,8 +132,6 @@ std::pair> smTTFont::_allocate_char(int rw,int rh) _smTexState* ptex=new _smTexState; ptex->cx=ptex->cy=ptex->mh=0; ptex->tex=sm->smTextureCreate(texw,texh); - DWORD* px=sm->smTextureLock(ptex->tex,0,0,texw,texh,false); - sm->smTexutreUnlock(ptex->tex); ret.first=ptex->tex; ret.second.first=ret.second.second=0; ptex->cx+=rw; -- cgit v1.2.3