mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
fix #1900
This commit is contained in:
@@ -6223,7 +6223,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
|
||||
protected void initOffscreen() {
|
||||
// Getting the context and capabilities from the main renderer.
|
||||
loadTextureImpl(Texture.BILINEAR, false);
|
||||
loadTextureImpl(textureSampling, false);
|
||||
|
||||
// In case of reinitialization (for example, when the smooth level
|
||||
// is changed), we make sure that all the OpenGL resources associated
|
||||
|
||||
@@ -52,13 +52,13 @@ public class Texture implements PConstants {
|
||||
* to linear */
|
||||
protected static final int LINEAR = 3;
|
||||
/** Bilinear sampling: both magnification filtering is set to linear and
|
||||
* minification either to linear-mipmap-nearest (linear interplation is used
|
||||
* minification either to linear-mipmap-nearest (linear interpolation is used
|
||||
* within a mipmap, but not between different mipmaps). */
|
||||
protected static final int BILINEAR = 4;
|
||||
/** Trilinear sampling: magnification filtering set to linear, minification to
|
||||
* linear-mipmap-linear, which offers the best mipmap quality since linear
|
||||
* interpolation to compute the value in each of two maps and then
|
||||
* interpolates linearly between these two value. */
|
||||
* interpolates linearly between these two values. */
|
||||
protected static final int TRILINEAR = 5;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user