prepare to handle other texture formats

required for DirectX 9...
This commit is contained in:
tildearrow 2024-05-15 02:48:18 -05:00
parent 540cbbd129
commit 394d5d6583
22 changed files with 131 additions and 24 deletions

View file

@ -1476,7 +1476,7 @@ void FurnaceGUI::drawSampleEdit() {
}
if (avail.x>=1 && avail.y>=1) {
logD("recreating sample texture.");
sampleTex=rend->createTexture(true,avail.x,avail.y);
sampleTex=rend->createTexture(true,avail.x,avail.y,true,bestTexFormat);
sampleTexW=avail.x;
sampleTexH=avail.y;
if (sampleTex==NULL) {