[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Public WebGL] gl.enable(gl.TEXTURE_2D)
- To: public webgl <email@example.com>
- Subject: [Public WebGL] gl.enable(gl.TEXTURE_2D)
- From: Giles Thomas <firstname.lastname@example.org>
- Date: Wed, 13 Jan 2010 17:16:11 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:message-id :subject:from:to:content-type; bh=4UXmte1n4HRsIATOZC6xke9HDwH5zZGF3TRrHi4VvQc=; b=REBkCveXmcLYtqRxK+Aws3919Fw/B0O4ebsrTWICxiG0Vv0lJyTfnfGjChrtwWM6sX sxmH6BVvwzAfBjVfiuJiWN/2of8IQ8zNs2p6Y641XlR7Js9PpgZtO+ccVVoSmij9E7gx 5BncjwpD7ppzlVMz69gA5wuWHHWh9R0QDci28=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; b=LUUdZYsQEHgWw9J+QC1QdQ61FHxUj6WO9Ck6R5zRdYX2iRwRYWBY0CLg7QghA9G4bV hpzZDBCSPOvqGWnnH03WKUJ4wJ0z3ocxleD3rZ8Dk+p5caMV7sim/2rTKtvI9VIrxi7i YXBEJZkbwvox84iyTDofinZtMQJobsbIgMSZw=
- Reply-to: email@example.com
- Sender: firstname.lastname@example.org
Is gl.enable(gl.TEXTURE_2D) required by the spec to switch on texture support? On the wiki, Gman just removed a line to that effect from the tutorial page, commenting that it's not valid WebGL; the spec seems to support this but there's some ambiguity. Here's the diff:
On the one hand, the description of the enable method in the spec says that it's directly equivalent
to the OpenGL ES 2.0 glEnable call, which does not list TEXTURE_2D as a
valid value, which supports Gman's view.
On the other, the TEXTURE_2D constant is defined in the spec in a section called
EnableCap, which also defines CULL_FACE, BLEND, and other constants that
the ES 2.0 spec says are meant to be used with enable.
I've tried removing the enable() call from line from some of my own WebGL pages and tried them in Minefield and Chromium, and there's no obvious effect to having it there.
Any clarification much appreciated -- if it's not meant to be passed to gl.enable(), then I'd suggest that TEXTURE_2D should be moved elsewhere (perhaps to the TextureTarget section)