Nazariglez / notan

Cross-platform multimedia layer
https://nazariglez.github.io/notan-web/
Apache License 2.0
802 stars 55 forks source link

Error: "extension to create ES context with wgl is not present" #289

Closed mantasarm closed 11 months ago

mantasarm commented 1 year ago

With the 0.10.0 version of notan I get the error Error: "extension to create ES context with wgl is not present". The program successfully compiles however it fails with the previously mentioned error. image

My machine is a Mac with an AMD card. It runs windows 10 with dual boot. I had this error before in notan version 0.9.2 I believe. However the owner Nazariglez released a patch that fixed the issue. But now it for some reason it reappeared. Would really appreciate some help with this. I don't want to move away from notan.

The patch from last time: https://github.com/Nazariglez/notan/pull/223

mantasarm commented 12 months ago

I have been doing some testing myself, notan uses glutin version 0.30.8 and the provided examples of that glutin version compile just fine on my machine. It seems there's something wrong with how we get the glutin context.

Nazariglez commented 12 months ago

Hey @mantasarm, the error is only on window? I'll try to check it in the next few days to see if I can see what's going on.

mantasarm commented 12 months ago

Hey, so the error occurs in here https://github.com/Nazariglez/notan/blob/develop/crates/notan_winit/src/gl_manager.rs where the window and gl_config is gotten. If I replace this part with how the glutin repository creates the window and gl_config https://github.com/rust-windowing/glutin/blob/master/glutin_examples/src/lib.rs, then it works. That's all I have tried out.

Nazariglez commented 12 months ago

Hey, sorry I explained poorly myself, I mean, is it only happening on the Window OS? Mac is not affected by this?

mantasarm commented 12 months ago

Ohhh. Yeah, so I just tried out latest version of notan on my MacOS boot and seems to be working just fine. It seems only my windows OS is affected.

mantasarm commented 12 months ago

Interesting update - If I set the multisampling to any other number than zero, then everything runs and works perfectly. But if disable multisampling (set it to 0) only then the error occurs.