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

Improve support of Qt + USING_GLES2 #11507

Merged
merged 2 commits into from
Nov 2, 2018
Merged

Conversation

unknownbrackets
Copy link
Collaborator

@unknownbrackets unknownbrackets commented Oct 28, 2018

See #11495 - it seems that Qt's configure would normally add this if you specify es2, and we already load gl3stub after, so forcing gles2 should be ideal for us. Not actually tested.

I don't know if this prevents us from using desktop GL, since ideally we'd be dynamic, but it fixes build errors.

Additionally, pulled the bandaid off for CMakeLists.txt in a separate commit. These rules seemed prevailing:

  • Tab indent (also in editorconfig)
  • No space in if(
  • Closing paren on its own line, deindented, for multiline set/list
  • Always indent inside if
  • Lowercase set(

-[Unknown]

CMakeLists.txt Outdated
@@ -784,6 +784,9 @@ elseif(USING_QT_UI)
Qt/mainwindow.h
)
add_definitions(-DUSING_QT_UI)
if(USING_GLES2)
add_definitions(-DQT_OPENGL_ES -DQT_OPENGL_ES_2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

; (semicolon) at the end of expression breaks build:

CMake Error at CMakeLists.txt:788:
  Parse error.  Expected a command name, got unquoted argument with text ";".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Derp.

-[Unknown]

@jbeich
Copy link
Contributor

jbeich commented Oct 28, 2018

v1.7 + this PR builds fine:

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

Successfully merging this pull request may close these issues.

None yet

3 participants