bracket-lib
bracket-lib copied to clipboard
nVidia support
/u/Morego writes:
I tried to solve it. It was error in context detection with opengl and DirectX later on in Glutin I think. On my laptop RLTK compiled normally runned with integrated graphic card and after renaming with Nvidia graphic card. Renaming enables Optimus optimization and Nvidia graphic card with newer version of Opengl context.
Alternatively it could work just fine with magic numbers of Nvidia set, but I have hard time finding out how to export those variables.
EDIT: Those are magic values. I have hard time exporting from Rust. If you know, how to do it I would be thankful. It should be enough.
extern "C" { _declspec(dllexport)
DWORD NvOptimusEnablement = 0x00000001; }