Re: Re[18]: OpenGL Linux SIGTRAP wxWidgets-3.2*

Dan Gudmundsson <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <CANX4uuPW=jZt4wRCL5fHmU+bVjy_QWrJqJS989C4FnqjQSkW_w@mail.gmail.com>
On Fri, Mar 17, 2023 at 5:50 PM Vadim Zeitlin <[email protected]> wrote:

> On Fri, 17 Mar 2023 17:00:57 +0100 Dan Gudmundsson wrote:
>
> DG> The amount to set a vm where I can build wxwidgets/erlang/wings is not
> that
> DG> small.
>
>  You don't need to compile in this VM...
>

True


>
> DG> I'm so lost here, I believe I will have to use the workaround..
>
>  AFAICS we really pass an invalid surface to eglSwapBuffers(), I see no
> other explanation. I.e. we need to set things up to recreate it before it's
> called again after reparenting.
>
>  A perhaps simpler way to do this than what I had proposed before would be
> to add a new X/GTK-specific event generated when the window is realized and
> to bind to it on the parent windows recursively in wxGLCanvasEGL and
> recreate the surface in the handler.
>
>
I don't know if that will work, do we get a realized event if we don't
create windows just delete and reparent,
i..e in the case a splitterwindow is deleted further up in the tree?

Maybe just do what I wanted in the first place, document CreateSurface()
for EGL only,
and add a eglDestroySurface() if the surface already exists, so the user
can have control.

I don't think just re-creating the surface will work since the wxGLContext
is dependent on it, so after the surface
is created, the user will still need to create a wxGLContext and activate
it with SetCurrent() and the users OpenGL
state needs to be re-initialized as well because that is lost.

So even if re-creating the surface in wxWidgets is automagic, the
EGL/OpenGL user still needs to act upon it afterwards.

That is a lot of new code in wxWidgets just to handle a corner case (or
maybe MESA bug) for something that
the user still needs to handle.

Regards
/Dan


>  Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
>                http://www.tt-solutions.com/
>

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/CANX4uuPW%3DjZt4wRCL5fHmU%2BbVjy_QWrJqJS989C4FnqjQSkW_w%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.