sciter-sdk / rust-sciter

Rust bindings for Sciter
https://sciter.com
MIT License
805 stars 75 forks source link

How to obtain current GL context under X11? #81

Closed sztomi closed 3 years ago

sztomi commented 3 years ago

I'm trying to port the opengl behavior example to Rust under X11: gist

This compiles, but glXGetCurrentContext always returns NULL, so none of the drawing actually runs. What am I doing wrong? Is there a sciter API to get the current context instead of the platform-specific one?

pravic commented 3 years ago

https://sciter.com/forums/topic/porting-opengl-behavior-to-linux-rust/

Isn't Rust-specific.

sztomi commented 3 years ago

Yeah, thanks. I opened the other topic as well. I'd close this, but I see you added labels. Do you want to keep it open?

pravic commented 3 years ago

No preferences. Feel free to decide)