Skip to content

Commit dc492b9

Browse files
authored
Use correct MAG filter for GL texture
Miscopy from MIN filter, which accepts wider variety of options. MAG filter only accepts GL_LINEAR and GL_NEAREST.
1 parent 6ed5e0a commit dc492b9

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)