Open boozook opened 5 years ago
I can repro. Apitrace shows a bunch of errors in CGL stuff:
unsupported CGLReleasePixelFormat call unsupported CGLRetainPixelFormat call unsupported CGLReleasePixelFormat call GL_RENDERER: Intel(R) Iris(TM) Graphics 550 GL_VENDOR: Intel Inc.
I don't think the CGLRetainPixelFormat
and CGLReleasePixelFormat
warnings are related. I've seen them before with a different application under apitrace, and they don't seem to affect the function of the program.
I'm thinking that we should drop GL support on macOS completely, see #3468
$ cd examples; cargo run --bin quad --features=gl
Short info header:
Radeon Pro 555X 4 GB
+Intel UHD Graphics 630 1536 MB
Case 1:
GL Profiles Call Stack:
or
State report.
Error caused [here - get VENDOR string (backend/gl/src/info.rs)[https://github.com/gfx-rs/gfx/blob/master/src/backend/gl/src/info.rs#L165] because
unwrap
, but before it:InvalidEnum
hereSo only err is returning and unwrapping.
When I changed this line (info.rs:128) to monkey-fix
if err != Error::NoError && value.len() == 0
, so now error isgl function was not loaded
with stack trace:This strange behaviour I can behaviour only with debug build. Release build works perfect works because GL has time to boot. But I don't understand it.
(Just in note. The metal backend works fine of course. But I need both.)