Failed to execute 'texImage2D' on 'WebGL2RenderingContext ...

文章推薦指數: 80 %
投票人數:10人

TypeError: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': Overload resolution failed ... I was seeing this error before in the past ... TypeError:Failedtoexecute'texImage2D'on'WebGL2RenderingContext':Overloadresolutionfailed Bugs mise February15,2022,3:33pm #1 Iwasseeingthiserrorbeforeinthepastmonths,butIhadnoideawhereitwascomingfrom. NowItriedtosimulatewebglcontextlost/restoredforthefirsttimeinawhileandthat’swhenIgotitlocally: image1278×23215.2KB I’monversion5.0.0-beta.6,butexpectittobeintherefromthealphaonaswell… thisisthecodeIusetosimulate,ithappensaftertherestoreContextcall. constloseContext=engine.babylonScene.getEngine()._gl.getExtension('WEBGL_lose_context')!; voidSystem.delay(10000).then(()=>loseContext.loseContext()); voidSystem.delay(11000).then(()=>loseContext.restoreContext()); IwillseeifIcanplaygrounditlaterwhenIhavetime. Deltakosh February15,2022,4:20pm #2 Yesplease,provideaPGsowecanhavealook mise February16,2022,11:37am #3 Ilocatedtheissue,andit’snotabuginBabylon,sowe’regood! (maybetheerrormessagecouldbeimproved,notsure!) Ifyou’reinterested: Babylon.jsPlayground Babylon.jsplaygroundisaliveeditorforBabylon.jsWebGL3Dscenes 1Like



請為這篇文章評分?