-
Notifications
You must be signed in to change notification settings - Fork 31
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
PI4 dual display with common context #8
Comments
Hi @ArtArt0 Are you using Raspberry Pi 4? How is the LCD connected to the board? |
With the standard cable (for the official 7'' LCD). Why? It shows the console successfully. |
Are you able to get any OpenGL output if you use only the LCD display without second HDMI screen? (I am trying to figure out if this is DRM device problem or EGL problem). |
Yes, I have no problem with it. |
I am not 100% sure because I haven't tried two displays, but I think you may need to call The Could you try iterating over the |
Finally I think I figured out! The problem was in the getDisplay(): the Anyway the cardX device must open once too. |
Awesome! You would be willing to share the code? I would like to give it a try and maybe make a sample code out of it and put it here in this repository. And yeah, the device |
Sorry, I can not share it, but I hope it easy to implement to anyone now. Anyway not always the card1 is the right one. You should detect with the following mode:
|
That's alright. I will play around with that when I get the chance and will create a sample code as well. Closing for now. |
Hi!
I ran an issue:
when I use the code with LCD and HDMI display together, I can not activate the second display (and surface) errorless.
First I use context 1:
eglMakeCurrent(ctx->eglDisplay, ctx->eglSurface, ctx->eglSurface, ctx->eglContext)
Than the context 2 with the same eglContext:
eglMakeCurrent(ctx2->eglDisplay, ctx2->eglSurface, ctx2->eglSurface, ctx->eglContext)
And the second gives EGL_BAD_CONTEXT.
Anyway if I use in the second one with ctx2->eglContext at the 4th parameter, it succeeded, but it gives a blank screen (because the ctx2 contains nothing)
What is the problem? Can U give me an example for using 2 displays with the same eglContext?
The text was updated successfully, but these errors were encountered: