public void OnApply(GL10 pGL) { if (GLHelper.EXTENSIONS_VERTEXBUFFEROBJECTS) { GL11 gl11 = (GL11)pGL; this.mTextureRegionBuffer.SelectOnHardware(gl11); GLHelper.BindTexture(pGL, this.mTexture.GetHardwareTextureID()); GLHelper.TexCoordZeroPointer(gl11); } else { GLHelper.BindTexture(pGL, this.mTexture.GetHardwareTextureID()); GLHelper.TexCoordPointer(pGL, this.mTextureRegionBuffer.GetFloatBuffer()); } }