Commit 76b84216 authored by Jordon Moss's avatar Jordon Moss
Browse files

engine: bind a sampler object when drawing voxels.

parent 4d7b0b9c
......@@ -1137,6 +1137,8 @@ int32_t polymost_voxdraw(voxmodel_t *m, tspriteptr_t const tspr)
else
buildgl_bindTexture(GL_TEXTURE_2D, m->texid8bit);
buildgl_bindSamplerObject(0, PTH_INDEXED);
int visShade = int(fabsf(((tspr->x-globalposx)*gcosang+(tspr->y-globalposy)*gsinang)*globvis2*(1.f/(64.f*1024.f*2.f))));
if (polymost_usetileshades())
......@@ -1157,6 +1159,8 @@ int32_t polymost_voxdraw(voxmodel_t *m, tspriteptr_t const tspr)
else
buildgl_bindTexture(GL_TEXTURE_2D, m->texid[globalpal]);
buildgl_bindSamplerObject(0, PTH_CLAMPED);
polymost_usePaletteIndexing(false);
polymost_setTexturePosSize({ 0.f, 0.f, 1.f, 1.f });
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment