I am currently using the method makeRGBTexture() from NeHe’s Lesson 6. The Java VM crashes with an OutOfMemory error, however, upon reaching the line in which allocateDirect() in ByteBuffer is called. Why is this and how can I prevent or get around it?
Hi,
try to configure the Java heap size: java -Xms256m -Xmx512m
ciao torsten