[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Public WebGL] Chrome reports GL_INVALID_ENUM with glGetTexParameteriv



(apologies for possible multiple copies)

Hi.

Chrome console reports "GL_INVALID_ENUM : glGetTexParameteriv: target
GL_INVALID_ENUM" with the following calls (both with ANGLE and desktop
GL):

// a valid cube map texture is currently bound
gl.getTexParameter(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_MAG_FILTER);
gl.getTexParameter(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_MIN_FILTER);
gl.getTexParameter(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_WRAP_S);
gl.getTexParameter(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_WRAP_T);
// all of them return zero

it works correctly with TEXTURE_2D.

m.



-- 
Marco Di Benedetto, Ph.D.

Researcher at the Visual Computing Lab
Istituto di Scienza e Technologie dell'Informazione "A. Faedo" (ISTI)
Consiglio Nazionale delle Ricerche (CNR) - Pisa - Italy
Office Phone: +39 050 315 2921
E-Mail: marco.dibenedetto@isti.cnr.it - spattija@gmail.com

-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------