lwjglgamedev / lwjglbook-leg

Source code of the chapters of the book 3D Game Development with LWJGL 3
https://ahbejarano.gitbook.io/lwjglgamedev/
Apache License 2.0
560 stars 202 forks source link

c21-p3: "Mesh" cannot be cast to "InstancedMesh" #43

Closed czmdav closed 7 years ago

czmdav commented 7 years ago

Running the code with Java 8 Update 121, 64 bit version gives the following Exception:

java.lang.ClassCastException: org.lwjglb.engine.graph.Mesh cannot be cast to org.lwjglb.engine.graph.InstancedMesh at org.lwjglb.engine.graph.Renderer.renderParticles(Renderer.java:201)

czmdav commented 7 years ago

Solved, never mind.