This commit is contained in:
codeanticode
2014-01-05 15:36:07 -05:00
parent ac3248ca33
commit ce5ead73ee
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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;