[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Public WebGL] Behavior of WebGL canvas when it can't make a backbuffer of the requested size?
- To: public webgl <public_webgl@khronos.org>
- Subject: [Public WebGL] Behavior of WebGL canvas when it can't make a backbuffer of the requested size?
- From: "Gregg Tavares (wrk)" <gman@google.com>
- Date: Thu, 9 Sep 2010 12:32:30 -0700
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1284060755; bh=bMQkiLQYhEu6MTwYsllPSWav91A=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=kGq8+T9scwKhJPJas460zRyojo7T5JXg3xKo2FA5eb5oB6EpNXeZAuUYomcFnc/mw ctVYz07S4+kI/9rFbTijg==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=U5GjYwTaSq2CGjLYESuHcu/xkeqOolJhEJ2iGoJD6eU=; b=gUa0wkpyypBoVxF8eXq8PUhTKvE+iim8wmeUI3I24GKUaUDFK1eeSIcbNl38+Vgis6 AC6MBfrDtR39XZ0PH/cw==
- Domainkey-signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:date:message-id:subject:from:to:content-type; b=Wy/CfsJDzpQqojgZNMJXgAZx8JUm8YRcZ6LvPvnRXx1XLO8q6V4n1D+vLzwrm5HAZA +/tccBjMxw/7RZy4F9Gw==
- Sender: owner-public_webgl@khronos.org
If I do this
<canvas width="2560" height="1600"></canvas>
canvas = document.getElementByTagName("canvas")[0];
gl = canvas.getContext("webgl");
Or this
<canvas></canvas>
canvas = document.getElementByTagName("canvas")[0];
gl = canvas.getContext("webgl");
canvas.width = 2560;
canvas.height = 1600;
And the GPU I'm on only supports 2048 maximum backbuffer size. What should happen?
1) getContext fails for case 1 above? for 2 you get lost context
2) You get a backbuffer of the maximum size. canvas.width and canvas.height change to match?
3) You get an exception
4) An out of range width setting is ignored it stays whatever it previously was.
5) ????