- cleaned up the sampler manager's content names and added the missing types to allow easier switching between indexed (no filtering) and non-indexed (filter as per user option).

This commit is contained in:
Christoph Oelckers 2019-10-19 19:10:09 +02:00
parent 2152780806
commit d4fc13fba5
8 changed files with 40 additions and 44 deletions

View file

@ -55,7 +55,7 @@ void glsurface_setPalette(void* pPalette)
paletteTexture->CreateTexture(256, 1, false, false);
}
paletteTexture->LoadTexture(palette);
GLInterface.BindTexture(1, paletteTexture, Sampler2DNoFilter);
GLInterface.BindTexture(1, paletteTexture, SamplerNoFilterClampXY);
}
void* glsurface_getBuffer()
@ -74,7 +74,7 @@ void glsurface_blitBuffer()
return;
bufferTexture->LoadTexture(buffer.Data());
GLInterface.BindTexture(0, bufferTexture, Sampler2DNoFilter);
GLInterface.BindTexture(0, bufferTexture, SamplerNoFilterClampXY);
auto data = GLInterface.AllocVertices(4);
auto vt = data.second;