Jump to content

Access violation when using fullscreen and unconventional window resolution


Go to solution Solved by Josh,

Recommended Posts

Posted

Video of the bug ^ Version 2996 dev branch. Projects are from before 1.0 release.

 

When setting a resolution that is not normally used and using WINDOW_FULLSCREEN, game crashes with access violation on a c++ project. On a lua project it comes up with a different error "No matching function call takes this number of arguments and the specified types". The game works fine with any resolution as long as you don't use  WINDOW_FULLSCREEN.

I have tested WINDOW_FULLSCREEN to work on resolutions 1280x720 and 1920x1080.

  • Solution
Posted

I can see the problem right there at 0:60. The window variable is empty, meaning it could not create a fullscreen window of that size.

You can iterate through the display graphics modes to find out what sizes are supported:
https://www.leadwerks.com/learn/Display

My job is to make tools you love, with the features you want, and performance you can't live without.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...