Page MenuHomeWildfire Games

Make GLES mode work on Mesa
AcceptedPublic

Authored by linkmauve on Sat, Nov 30, 3:20 PM.

Details

Reviewers
JoshuaJB
Summary

This fixes various GLES 2.0 issues that prevented 0ad from building on Mesa, and from running on Intel’s Iris driver.

Test Plan
  • Gather as many GLES 2.0-compatible computers.
  • Build 0ad for them.
  • Run 0ad and check it works fine.

Event Timeline

linkmauve created this revision.Sat, Nov 30, 3:20 PM
Owners added a subscriber: Restricted Owners Package.Sat, Nov 30, 3:20 PM

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/661/display/redirect

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Source...

source/lib/external_libraries/glext_funcs.h
|   1| /*·Copyright·(C)·2013·Wildfire·Games.
|    | [NORMAL] LicenseYearBear:
|    | License should have "2019" year instead of "2013"
Executing section JS...
Executing section cli...

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1177/display/redirect

JoshuaJB accepted this revision.Sun, Dec 1, 11:36 PM
JoshuaJB added a subscriber: JoshuaJB.

Thanks you so much for taking a look at this! Strong GL ES support has been on my wishlist for a long time. If the minimap still doesn't support GL ES (it didn't last I looked), I have a patch from years that could be salvaged rather than starting from scratch.

source/ps/GameSetup/HWDetect.cpp
715

What exactly is there TODO about this?

This revision is now accepted and ready to land.Sun, Dec 1, 11:36 PM

The minimap looks correct atm, the entire game looks like it only needs some polish before it looks identical to the GL version, on Intel. :)