Commit 862711c3 authored by amandaghassaei's avatar amandaghassaei

warning

parent a5eaf2e9
......@@ -70,6 +70,13 @@ function initGPUMath(){
framebuffer = gl.createFramebuffer();
gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer);
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texture, 0);
var check = gl.checkFramebufferStatus(gl.FRAMEBUFFER);
if(check != gl.FRAMEBUFFER_COMPLETE){
$("#noSupportModal").modal("show");
console.warn("rendering to floating point textures are not supported on your system");
}
this.frameBuffers[textureName] = framebuffer;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment