I've been having issues with SkSurface::MakeFromBackendRenderTarget returning me NULL when giving more than 1 sample on Intel iGPUs.
I finally got Skia to build with symbols and see that the issue is here:
This table array only contains a single value, and it's 1. But I think this is impossible because the minimum for OpenGL is 4 samples. Querying GL_MAX_SAMPLES myself correctly returns 16.
It seems to work correctly on my NVIDIA GPUs, but on my Surface Pro 6 (i5 8250U iGPU) and my ASUS E403N (Celeron N3350 iGPU), I'm unable to create an MSAA surface with more than one sample.
I'm currently testing on the chrome/m92 branch for other reasons, but the current main branch build return NULL as well.
I also see:
---- glGetError 0x500(Invalid Enum) at
Which could be related (GL_VERSION).
I see there's workaround max_msaa_sample_count_4, but how can I set this in my application without hacking it into my custom version of the library?