mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-28 03:22:58 +00:00
batch 2.2, clamp be gone
This commit is contained in:
parent
e71ff8699a
commit
97b068260a
|
|
@ -696,8 +696,8 @@ void Textures::loadTexture(BufferedImage* img, int id, bool blur, bool clamp) {
|
|||
}
|
||||
|
||||
if (clamp) {
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||
} else {
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
|
||||
|
|
|
|||
Loading…
Reference in a new issue