fix
This commit is contained in:
parent
c2369f57a7
commit
cca84dea00
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ bool FurnaceGUIRenderDX11::updateTexture(void* which, void* data, int pitch) {
|
|||
if (t->dynamic) {
|
||||
unsigned char* d=NULL;
|
||||
int p=0;
|
||||
if (!lockTexture(t,&d,&p)) return false;
|
||||
if (!lockTexture(t,(void**)&d,&p)) return false;
|
||||
if (p==pitch) {
|
||||
memcpy(d,data,p*t->height);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue