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

downgrade OpenGL from 4.1 to 3.3 #256

Closed
wants to merge 1 commit into from
Closed

downgrade OpenGL from 4.1 to 3.3 #256

wants to merge 1 commit into from

Conversation

pchampio
Copy link
Member

@pchampio pchampio commented Sep 8, 2019

fixes #248
downgrading from 4.x to 3.3 enable us target more devices without any cost.

@pchampio
Copy link
Member Author

pchampio commented Sep 8, 2019

@nzlov has reported that the OpenGL 3.3 was working and OpenGL 4.1 not

@nzlov
Copy link

nzlov commented Sep 10, 2019

I'm not sure if downgrading is necessary because I'm running win10 on a virtual machine and can't update the OpenGL driver.

@pchampio
Copy link
Member Author

I don't want to maintain the 'gl-3.3' branch forever.
Either we merge it or drop it.
If we drop p it, you wouldn't ne able to run on windows 10? Am I understanding correctly?

@nzlov
Copy link

nzlov commented Sep 10, 2019

Yes,I need gl-3.3.

@pchampio
Copy link
Member Author

see: #258

@pchampio pchampio closed this Sep 12, 2019
@pchampio pchampio deleted the gl-3.3 branch September 25, 2019 00:51
@ekasetiawans
Copy link

is this means we need computer that supported opengl version 3.3 or above on graphics card, to run our applications? @Drakirus

@pchampio
Copy link
Member Author

$ hover build --help 
Flags:
      --opengl string       The OpenGL version specified here is only relevant for external texture plugin (i.e. video_plugin).
                            If 'none' is provided, texture won't be supported. Note: the Flutter Engine still needs a OpenGL compatible context. (default "3.3")

OpenGL is used in 2 way.

  • One through GLFW, used to draw your flutter app handle event, etc..
  • Two through OpenGL-bindings directly, ONLY for textures (as the above flag description says).
    But the OpenGL-bindings version used here affect GLFW internally.

By default, we use GLFW/3.2 and OpenGL-bindings 3.3, so your system must be compatible with those versions (at least OpenGL 3.3 or above).

But if you don't have support for OpenGL 3.3. you could use the --opengl=none flag.
This flag will use OpenGL in one way:

  • through GLFW, used to draw your flutter app handle event, etc..
  • Texture plugin won't be supported and panic the app.

GLFW will internally choose the min OpenGL version to use.

@lmx01
Copy link

lmx01 commented Mar 25, 2020

I got this error while run "hover run -b '@gl-3.3':
go get github.com/go-flutter-desktop/go-flutter@gl-3.3: github.com/go-flutter-desktop/go-flutter@gl-3.3: invalid version: unknown revision gl-3.3
Can U help me?Thanks.

@pchampio
Copy link
Member Author

This branch does not exist anymore, that's why you have this error.
Please read the hover help page about -b.

@lmx01
Copy link

lmx01 commented Mar 25, 2020

thanks @pchampio

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

Successfully merging this pull request may close these issues.

Windows: Failed to create OpenGL context
4 participants