Backed out changeset b77b26c9b3b6 (bug 1102667)

This commit is contained in:
Wes Kocher 2014-11-24 15:20:29 -08:00
Родитель 192e2a7ee5
Коммит 25429a734a
1 изменённых файлов: 7 добавлений и 9 удалений

Просмотреть файл

@ -156,16 +156,14 @@ function runRenderTargetTest(testProgram)
gl.bindFramebuffer(gl.FRAMEBUFFER, fbo);
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texture, 0);
gl.bindTexture(gl.TEXTURE_2D, null);
// Enabling OES_texture_float will either implicitly enable the entirety of
// WEBGL_color_buffer_float, or it will not enable any of it. If it is not
// enabled, we'll get an FB_INCOMPLETE_ATTACHMENT here.
if (gl.checkFramebufferStatus(gl.FRAMEBUFFER) != gl.FRAMEBUFFER_COMPLETE) {
shouldBe("gl.checkFramebufferStatus(gl.FRAMEBUFFER)", "gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT");
return;
}
shouldBe("gl.checkFramebufferStatus(gl.FRAMEBUFFER)", "gl.FRAMEBUFFER_COMPLETE");
// While strictly speaking it is probably legal for a WebGL implementation to support
// floating-point textures but not as attachments to framebuffer objects, any such
// implementation is so poor that it arguably should not advertise support for the
// OES_texture_float extension. For this reason the conformance test requires that the
// framebuffer is complete here.
if (gl.checkFramebufferStatus(gl.FRAMEBUFFER) != gl.FRAMEBUFFER_COMPLETE)
return;
var renderProgram =
wtu.setupProgram(gl,