• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed Sep 29, 2015 at 10:23 AM by Garazbolg for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by Garazbolg · Sep 25, 2015 at 01:40 PM · openglforcemode

[-force-opengl][5.2] Cant load shaders

Hello,

When ever i try to build a scene (even as simple as just with a cube) and then try to launch my exe with "-force-opengl" he can't find the shaders and i get this purple color on every GameObjects.

So i tried it with different configurations with just a cube in a new scene in a new project:

  • AMD GPU

  • NVIDIA GPU

  • with all builtin shaders in the projects

  • with -force-glcore and -force-glcore45

It never works.

It works fine with DirectX, and with -force-opengl on the editor but as soon as i try it on the standalone .exe it doesn't.

You can reproduct this very quickly :

  • Create a new project

  • Create a scene with just a cube and a camera in it

  • Build it

  • Open your build's directory

  • Make a shortcut to your executable

  • In the properties of your shortcut add "-force-opengl" to the target path

Maybe I made a mistake and its standing right in front of me but please tell me if you get the same error as i do.

Here is the outputlog :

http://pastebin.com/raw.php?i=PcYhQENw

I have this issue since 5.2.1f1 patch (could have appeared in another patch the previous i had was the 5.1.1f1).

Thank you for your help.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by Garazbolg · Sep 29, 2015 at 10:22 AM

Well Apparently since Unity 5.2 OpenGL isn't supported by default.

For those who have the same issue, to change that :

  • Go to Player Settings

  • Uncheck Auto Graphics API for Windows (or for Linux)

  • Then Add OpenGL 2, or GLCore (OpenGL 2 for -force-opengl and GLCore for -force-glcore)

And there you go.

But i still think it should have remained by default.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

28 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

how to pass a png texture created in managed Unity code, and render it from inside a c++ plugin? 0 Answers

OpenGl in VR fragments. 0 Answers

How to embed my Unity OpenGL game to my website? 0 Answers

Player being pulled back by ForceMode2D.Impulse 0 Answers

What are the system requirements for deployed apps on Linux? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges