diff options
author | Chris Xiong <chirs241097@gmail.com> | 2018-02-03 23:43:31 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2018-02-03 23:43:31 +0800 |
commit | c741895e45968b50114a1b6ec0307503bce59783 (patch) | |
tree | 735dfe6bf02153dba22703dbe724f6c29f399603 /extensions | |
parent | 1eb88d4f5d5cb05d62be1d4a0c88c7399f7c0de0 (diff) | |
download | SMELT-c741895e45968b50114a1b6ec0307503bce59783.tar.xz |
Fixed texture locking for sure this time.
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/smttfont.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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<SMTEX,std::pair<int,int>> 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; |