package com.rabenauge.gl;

import javax.microedition.khronos.opengles.GL11;

/*
 * Wrapper class for point sprites (requires GL_OES_point_sprite).
 */
public class PointSprite extends Texture2D {
    public PointSprite(GL11 gl) {
        super(gl);
    }

    public void enable(boolean state) {
        super.enable(state);
        if (state) {
            gl.glEnable(GL11.GL_POINT_SPRITE_OES);
            gl.glTexEnvx(GL11.GL_POINT_SPRITE_OES, GL11.GL_COORD_REPLACE_OES, 1);
        }
        else {
            gl.glDisable(GL11.GL_POINT_SPRITE_OES);
            gl.glTexEnvx(GL11.GL_POINT_SPRITE_OES, GL11.GL_COORD_REPLACE_OES, 0);
        }
    }

    public void setSize(float size) {
        gl.glPointSize(size);
    }
}

@@ -294,32 +294,135 @@
 olean state) %7B%0D%0A
+        enable(state, state);%0D%0A    %7D%0D%0A%0D%0A    public void enable(boolean spriting, boolean texturing) %7B%0D%0A
         super.en
@@ -426,21 +426,25 @@
 .enable(
-state
+texturing
 );%0D%0A    
@@ -452,20 +452,23 @@
    if (s
-tate
+priting
 ) %7B%0D%0A   

Add an argument allowing to toggle point sprites and texturing separately