Skip to content

Commit bfe4acb

Browse files
authored
Merge pull request #119 from cortex-command-community/fix-missing-index-255
Fix index 255 showing up as black
2 parents c8676bd + 640d525 commit bfe4acb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1212

1313
</details>
1414

15+
<details><summary><b>Fixed</b></summary>
16+
17+
- Fixed an issue where palette index 255 was incorrectly showing as black.
18+
19+
</details>
20+
1521
## [Release v6.2.2] - 2024/02/24
1622

1723
<details><summary><b>Added</b></summary>

Source/Managers/PostProcessMan.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ void PostProcessMan::CreateGLBackBuffers() {
125125
GL_CHECK(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, c_PaletteEntriesNumber, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0));
126126
GL_CHECK(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST));
127127
GL_CHECK(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST));
128+
GL_CHECK(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE));
129+
GL_CHECK(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE));
128130
UpdatePalette();
129131
GL_CHECK(glActiveTexture(GL_TEXTURE0));
130132
m_ProjectionMatrix = std::make_unique<glm::mat4>(glm::ortho(0.0F, static_cast<float>(g_WindowMan.GetResX()), 0.0F, static_cast<float>(g_WindowMan.GetResY()), -1.0F, 1.0F));

0 commit comments

Comments
 (0)