mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-22 01:11:49 +00:00
Fix copying of pixels from surface.texPixels to LMTextureData
This commit is contained in:
parent
72ccf127ba
commit
8d2b03b7ef
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ void VulkanRenderDevice::SetLevelMesh(hwrenderer::LevelMesh* mesh)
|
||||||
for (int j = 0; j < surface.texWidth; j++)
|
for (int j = 0; j < surface.texWidth; j++)
|
||||||
{
|
{
|
||||||
// get texture offset
|
// get texture offset
|
||||||
int offs = ((surface.texWidth * (i + surface.atlasY)) + surface.atlasX) * 3;
|
int offs = ((mesh->LMTextureSize * (i + surface.atlasY)) + surface.atlasX) * 3;
|
||||||
|
|
||||||
// convert RGB to bytes
|
// convert RGB to bytes
|
||||||
currentTexture[offs + j * 3 + 0] = floatToHalf(clamp(colorSamples[i * surface.texWidth + j].X, 0.0f, 65000.0f));
|
currentTexture[offs + j * 3 + 0] = floatToHalf(clamp(colorSamples[i * surface.texWidth + j].X, 0.0f, 65000.0f));
|
||||||
|
|
Loading…
Reference in a new issue