final FloatBuffer fogBuffer = fogBufferData != null ? fogBufferData.getBuffer() : null;
if (fogBuffer == null) {
gl.getGL2GL3().glDisableClientState(GL2.GL_FOG_COORDINATE_ARRAY);
} else {
gl.getGL2GL3().glEnableClientState(GL2.GL_FOG_COORDINATE_ARRAY);
<BUG>fogBuffer.rewind();
gl.getGL2().glFogCoordPointer(GL.GL_FLOAT, 0, fogBuffer);
}</BUG>
}
public void setupTextureData(final List<FloatBufferData> textureCoords) {

final FloatBuffer fogBuffer = fogBufferData != null ? fogBufferData.getBuffer() : null;
if (fogBuffer == null) {
gl.getGL2GL3().glDisableClientState(GL2.GL_FOG_COORDINATE_ARRAY);
} else {
gl.getGL2GL3().glEnableClientState(GL2.GL_FOG_COORDINATE_ARRAY);
fogBuffer.rewind();
if (gl.isGL2()) {
gl.getGL2().glFogCoordPointer(GL.GL_FLOAT, 0, fogBuffer);
}
}
}
public void setupTextureData(final List<FloatBufferData> textureCoords) {
