fix merge error
This commit is contained in:
parent
7326c45ee8
commit
eba997cfb6
@ -2206,22 +2206,17 @@ public final class GLRenderer implements Renderer {
|
|||||||
} else if (img.hasMipmaps()) {
|
} else if (img.hasMipmaps()) {
|
||||||
// Image already has mipmaps, set the max level based on the
|
// Image already has mipmaps, set the max level based on the
|
||||||
// number of mipmaps we have.
|
// number of mipmaps we have.
|
||||||
gl.glTexParameteri(target, GL.GL_TEXTURE_MAX_LEVEL, img.getMipMapSizes().length - 1);
|
gl.glTexParameteri(target, GL2.GL_TEXTURE_MAX_LEVEL, img.getMipMapSizes().length - 1);
|
||||||
} else {
|
} else {
|
||||||
// Image does not have mipmaps and they are not required.
|
// Image does not have mipmaps and they are not required.
|
||||||
// Specify that that the texture has no mipmaps.
|
// Specify that that the texture has no mipmaps.
|
||||||
gl.glTexParameteri(target, GL.GL_TEXTURE_MAX_LEVEL, 0);
|
gl.glTexParameteri(target, GL2.GL_TEXTURE_MAX_LEVEL, 0);
|
||||||
}
|
}
|
||||||
(??) } else if (img.hasMipmaps()) {
|
|
||||||
(??) // Image already has mipmaps, set the max level based on the
|
|
||||||
(??) // number of mipmaps we have.
|
|
||||||
(??) gl.glTexParameteri(target, GL.GL_TEXTURE_MAX_LEVEL, img.getMipMapSizes().length - 1);
|
|
||||||
} else {
|
} else {
|
||||||
// Check if graphics card doesn't support multisample textures
|
// Check if graphics card doesn't support multisample textures
|
||||||
if (!caps.contains(Caps.TextureMultisample)) {
|
if (!caps.contains(Caps.TextureMultisample)) {
|
||||||
throw new RendererException("Multisample textures are not supported by the video hardware");
|
throw new RendererException("Multisample textures are not supported by the video hardware");
|
||||||
}
|
}
|
||||||
(??)
|
|
||||||
|
|
||||||
if (img.isGeneratedMipmapsRequired() || img.hasMipmaps()) {
|
if (img.isGeneratedMipmapsRequired() || img.hasMipmaps()) {
|
||||||
throw new RendererException("Multisample textures do not support mipmaps");
|
throw new RendererException("Multisample textures do not support mipmaps");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user