* Attempt to fix ATI native crash with particles

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7006 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent 212b5e243a
commit 656783476e
  1. 4
      engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java
  2. 2
      engine/src/test/jme3test/effect/TestPointSprite.java
  3. 4
      engine/src/test/jme3test/light/TestEnvironmentMapping.java

@ -1522,6 +1522,10 @@ public class LwjglRenderer implements Renderer {
tex.getAnisotropicFilter()); tex.getAnisotropicFilter());
} }
} }
if (context.pointSprite)
return; // Attempt to fix glTexParameter crash for some ATI GPUs
// repeat modes // repeat modes
switch (tex.getType()) { switch (tex.getType()) {
case ThreeDimensional: case ThreeDimensional:

@ -55,7 +55,7 @@ public class TestPointSprite extends SimpleApplication {
emit.setGravity(0); emit.setGravity(0);
emit.setLowLife(60); emit.setLowLife(60);
emit.setHighLife(60); emit.setHighLife(60);
emit.setStartVel(new Vector3f(0, 0, 0)); emit.setInitialVelocity(new Vector3f(0, 0, 0));
emit.setImagesX(15); emit.setImagesX(15);
emit.setStartSize(0.05f); emit.setStartSize(0.05f);
emit.setEndSize(0.05f); emit.setEndSize(0.05f);

@ -3,14 +3,10 @@ package jme3test.light;
import com.jme3.app.SimpleApplication; import com.jme3.app.SimpleApplication;
import com.jme3.asset.TextureKey; import com.jme3.asset.TextureKey;
import com.jme3.input.ChaseCamera; import com.jme3.input.ChaseCamera;
import com.jme3.input.KeyInput;
import com.jme3.input.controls.ActionListener;
import com.jme3.input.controls.KeyTrigger;
import com.jme3.material.Material; import com.jme3.material.Material;
import com.jme3.math.Vector3f; import com.jme3.math.Vector3f;
import com.jme3.post.FilterPostProcessor; import com.jme3.post.FilterPostProcessor;
import com.jme3.post.filters.BloomFilter; import com.jme3.post.filters.BloomFilter;
import com.jme3.renderer.RenderManager;
import com.jme3.scene.Geometry; import com.jme3.scene.Geometry;
import com.jme3.scene.Node; import com.jme3.scene.Node;
import com.jme3.scene.Spatial; import com.jme3.scene.Spatial;

Loading…
Cancel
Save