Skip to content

Commit a6e6c76

Browse files
authored
Merge pull request #14 from cortex-command-community/mag-filter-patch
Use correct MAG filter for GL texture
2 parents 6ed5e0a + dc492b9 commit a6e6c76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Managers/PostProcessMan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace RTE {
159159
glBindTexture(GL_TEXTURE_2D, reinterpret_cast<GLBitmapInfo*>(bitmap->extra)->m_Texture);
160160
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap->w, bitmap->h, 0, GL_RGBA, GL_UNSIGNED_BYTE, bitmap->line[0]);
161161
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
162-
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR_MIPMAP_LINEAR);
162+
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
163163
glGenerateMipmap(GL_TEXTURE_2D);
164164
}
165165

@@ -548,4 +548,4 @@ namespace RTE {
548548
}
549549
}
550550
}
551-
} // namespace RTE
551+
} // namespace RTE

0 commit comments

Comments
 (0)