Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting PreferredBackBufferHeight doesn't work with Monogame on Linux #2

Open
3vi1 opened this issue Sep 16, 2013 · 2 comments
Open

Comments

@3vi1
Copy link

3vi1 commented Sep 16, 2013

Using this DLLwith a bare-bones Monogame project, I find that it does fix the problem Monogame has with setting the PreferredBackBuffer_Width_. This doesn't work with the stock OpenTK.dll, but does work when you replace it with the SDL2 OpenTK DLL.

However, seting the PreferredBackBuffer_Height_.still has no effect.

@sulix
Copy link
Owner

sulix commented Sep 17, 2013

Wow: I didn't think anyone was still using this! I'm now focusing work on monogame-sdl2 (https://github.com/flibitijibibo/MonoGame ) and SDL2# (https://github.com/flibitijibibo/SDL2-CS ), which are much more complete and have had several games shipped (including FEZ from the current Humble Bundle).

If you still want to use opentk-sdl2, I have a couple of ideas as to what the problem might be.

Have you applied the modeswitching patch from https://bugzilla.libsdl.org/show_bug.cgi?id=1742 to the version of SDL2 you're using? opentk-sdl2 currently requires this (see https://github.com/sulix/opentk-sdl2/blob/master/Source/OpenTK/Platform/SDL2/SDL2GLNative.cs#L284), but it can be worked around. The older code (which didn't require the patch) was changed in 1501182

I think that's probably the issue, but — just to confirm — are you using the accompanying monogame branch https://github.com/sulix/MonoGame/tree/opentk-sdl2 ?

— David

@3vi1
Copy link
Author

3vi1 commented Sep 17, 2013

I'm now focusing work on monogame-sdl2

That's eventually where I ended up too, as it sets the width/height fine. Thank you for responding, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants