Skip to content

Commit 79616c2

Browse files
committed
fix #1900
1 parent 3eb4eb2 commit 79616c2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6223,7 +6223,7 @@ protected void endOnscreenDraw() {
62236223

62246224
protected void initOffscreen() {
62256225
// Getting the context and capabilities from the main renderer.
6226-
loadTextureImpl(Texture.BILINEAR, false);
6226+
loadTextureImpl(textureSampling, false);
62276227

62286228
// In case of reinitialization (for example, when the smooth level
62296229
// is changed), we make sure that all the OpenGL resources associated

core/src/processing/opengl/Texture.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ public class Texture implements PConstants {
5252
* to linear */
5353
protected static final int LINEAR = 3;
5454
/** Bilinear sampling: both magnification filtering is set to linear and
55-
* minification either to linear-mipmap-nearest (linear interplation is used
55+
* minification either to linear-mipmap-nearest (linear interpolation is used
5656
* within a mipmap, but not between different mipmaps). */
5757
protected static final int BILINEAR = 4;
5858
/** Trilinear sampling: magnification filtering set to linear, minification to
5959
* linear-mipmap-linear, which offers the best mipmap quality since linear
6060
* interpolation to compute the value in each of two maps and then
61-
* interpolates linearly between these two value. */
61+
* interpolates linearly between these two values. */
6262
protected static final int TRILINEAR = 5;
6363

6464

0 commit comments

Comments
 (0)