If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

CubeVid generates WebGL errors as it calls generateMipmap on a non-power-of-two texture

NEW
Unassigned

Status

Firefox OS
Gaia
4 years ago
4 years ago

People

(Reporter: bjacob, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

I'm running the 'emulator' B2G config on Linux x86-64 (Ubuntu 12.04), Intel graphics.

I'm on the master branch / mozilla-central.

Running the CubeVid app, I get these WebGL errors in logcat:

E/GeckoConsole(  227): [JavaScript Warning: "Error: WebGL: generateMipmap: Level zero of texture does not have power-of-two width and height." {file: "app://cubevid.gaiamobile.org/webgl-demo.js" line: 292}]

Indeed, WebGL (like OpenGL ES 2.0) disallows calling generateMipmap on a non-power-of-two texture, that is, a texture whose width or height is not a power of two.

That might (or might not) explain the flickering that I'm experiencing in CubeVid. (That would typically result in that texture being sampled as RGBA(0,0,0,0) pixels in any shader sampling it).

Updated

4 years ago
Component: Gaia → Canvas: WebGL
Product: Boot2Gecko → Core
Version: unspecified → Trunk
(Reporter)

Updated

4 years ago
Component: Canvas: WebGL → Gaia
Product: Core → Boot2Gecko
Version: Trunk → unspecified
(Reporter)

Comment 1

4 years ago
This is not a Core/WebGL bug: this is not a bug in the WebGL implementation in Gecko.

This is a bug in CubeVid, specifically in how it is using WebGL.

This WebGL error might also not be an actual problem, but I though I'd make sure that people know about it. At least, it would be nice to fix it if only to avoid noise in the logcat.
You need to log in before you can comment on or make changes to this bug.