hairyf / vue3-pixi

Lightweight and flexible Vue 3 library for creating PixiJS applications.
https://vue3-pixi.vercel.app/
MIT License
206 stars 22 forks source link

gl.getInternalformatParameter is not a function. #86

Closed helenhu0372 closed 6 months ago

helenhu0372 commented 6 months ago

gl.getInternalformatParameter is not a function. (In 'gl.getInternalformatParameter(gl.RENDERBUFFER, gl.RGBA8, gl.SAMPLES)', When I use ios 12,13,14 safri, I got this error, is there any solution to fix it?

hairyf commented 6 months ago

Can you provide more information, such as the smallest use case that I will try to replicate in Safri? Thank you

helenhu0372 commented 6 months ago

image I test you demo project and got this error I have got before, so I use webpack to transform code to ES5, but I got the error gl.getInternalformatParameter is not a function. This error only show in ios under 15.

hairyf commented 6 months ago

It looks more like an error in pixijs, and I have found a corresponding solution https://stackoverflow.com/questions/67726514/pixi-autodetectrenderer-typeerror-gl-getinternalformatparameter-is-not-a-functi

You can try running this code in your entrance

import { settings, ENV } from 'pixijs'
if(window.safari){
    settings.PREFER_ENV = ENV.WEBGL;
}