The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Unsubscribe
James Barrett
Guest

Unsubscribe On Nov 2, 2015 6:55 PM, "Jonathan Dearborn" wrote:
Quote:
Hey,

I'm using the SDL_APP_DIDENTERBACKGROUND event on iOS to save state (as directed by comments in README-ios) when my app is sent to the background.  However, the same code won't work right on Android.


Specifically, I'm saving the contents of a texture to disk.  This requires a GL call, but Android is ruining my GL context before I get a chance to do anything about the event:
"SDL_APP_DIDENTERBACKGROUND
Saving state...
E/libEGL(8572): call to OpenGL ES API with no current context (logged once per thread)
Saved in 0.053 seconds.
onWindowFocusChanged(): false
surfaceDestroyed()"





Saving on the SDL_APP_WILLENTERBACKGROUND event doesn't appear to give any additional time with the GL context.



Would it be possible to make SDL wait somewhere until the event is handled (i.e. check if there's an event filter installed and wait for that to handle the event)?  Do you think the GL context would still be valid at that point?  Is there another way?


Jonny D


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Unsubscribe
James Barrett
Guest

Unsubscribe On Nov 2, 2015 10:56 PM, "Jonathan Dearborn" wrote:
Quote:
No, sadly SDL_ANDROID_BLOCK_ON_PAUSE=0 doesn't affect it. It's normal behavior for Android to invalidate the context, even for Java apps; I just don't have the chance to react.

Jonny D





On Mon, Nov 2, 2015 at 8:21 PM, Michael Labbe wrote:
Quote:
Does disabling SDL_ANDROID_BLOCK_ON_PAUSE stop the context from being destroyed?  Docs imply it does. I haven't gone there, myself.



Realistically even then, your GL calls are asynchronous and, by going into the background while pulling pixel data, you are tempting driver bugs to appear on various EGL driver implementations which may assume certain things about the graphics state while backgrounded.  Android EGL implementations do not always do the right thing.


I would consider having a recent copy of the texture in the gameplay thread before SDL_APP_DIDENTERBACKGROUND is ever called.





On Mon, Nov 2, 2015 at 3:55 PM, Jonathan Dearborn wrote:


Quote:
Hey,

I'm using the SDL_APP_DIDENTERBACKGROUND event on iOS to save state (as directed by comments in README-ios) when my app is sent to the background.  However, the same code won't work right on Android.


Specifically, I'm saving the contents of a texture to disk.  This requires a GL call, but Android is ruining my GL context before I get a chance to do anything about the event:
"SDL_APP_DIDENTERBACKGROUND
Saving state...
E/libEGL(8572): call to OpenGL ES API with no current context (logged once per thread)
Saved in 0.053 seconds.
onWindowFocusChanged(): false
surfaceDestroyed()"





Saving on the SDL_APP_WILLENTERBACKGROUND event doesn't appear to give any additional time with the GL context.



Would it be possible to make SDL wait somewhere until the event is handled (i.e. check if there's an event filter installed and wait for that to handle the event)?  Do you think the GL context would still be valid at that point?  Is there another way?


Jonny D




_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Unsubscribe
James Barrett
Guest

Unsubscribe On Oct 27, 2015 10:56 PM, "DLudwig" wrote:
Quote:


rotanov wrote:


The first post errors occurred on Windows 7 system with Visual Studio 2015.
On another system (Windows 8 Visual Studio 2015) I got lots of those:



Quote:



Severity Code Description Project File Line
Error C2011 '_XINPUT_BATTERY_INFORMATION': 'struct' type redefinition [D:\dev\engine\build\sdl\src\sdl-build\SDL2.vcxproj] sdl d:\dev\engine\3rd\sdl\src\core\windows\SDL_xinput.h 122





Maybe related to this commit https://github.com/spurious/SDL-mirror/commit/bf785c766bdcdf6ad498123ae80d132a7192b10d




I can't speak definitively on the Win7 error. It kind-of looks like you might be mixing debug-mode and release-mode SDL dlls, but I could be wrong there.

On the Win8 error, that looks like it might be a bug in SDL, one where the commit you referenced (also referenced on the official SDL hg server, via https://hg.libsdl.org/SDL/rev/26b595dea221 ), caused builds against certain versions of the Windows SDK to fail. I get the same error on WinRT, after having updated one of my own repos to the latest SDL code (from hg.libsdl.org). From briefly looking at the copy of the Windows SDK I have, it looks like the Win8+ SDKs have a few identical type declarations, which MSVC is unable to reliably resolve.

If I can find time in the next few weeks, I can take a stab at providing a patch (to Sam, Ryan, etc.), but make no guarantees. I don't have an actively-working Win7 dev system anymore though, so I wouldn't be able to test building there.

-- David L.


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Unsubscribe
Alex Szpakowski
Guest

FYI you’re sending messages to the SDL mailing list, rather than actually unsubscribing. You can unsubscribe from this page: http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Quote:
On Nov 3, 2015, at 12:41 AM, James Barrett wrote:

Unsubscribe _______________________________________________SDL mailing://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Unsubscribe
James Barrett
Guest

That's not how it used to work. Sounds like link bait. On Nov 2, 2015 11:44 PM, "Alex Szpakowski" wrote:
Quote:
FYI you’re sending messages to the SDL mailing list, rather than actually unsubscribing. You can unsubscribe from this page: http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Quote:
On Nov 3, 2015, at 12:41 AM, James Barrett wrote:


Unsubscribe _______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Unsubscribe
Jonny D


Joined: 12 Sep 2009
Posts: 932
Have you unsubscribed from this list often?

On Mon, Nov 2, 2015 at 11:56 PM, James Barrett wrote:
Quote:

That's not how it used to work. Sounds like link bait. On Nov 2, 2015 11:44 PM, "Alex Szpakowski" wrote:
Quote:
FYI you’re sending messages to the SDL mailing list, rather than actually unsubscribing. You can unsubscribe from this page: http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Quote:
On Nov 3, 2015, at 12:41 AM, James Barrett wrote:


Unsubscribe _______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org





_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Unsubscribe
James Barrett
Guest

Unsubscribe On Nov 3, 2015 12:58 AM, "Owen Alanzo Hogarth" wrote:
Quote:
what are the dependencies to compile sdl_ttf from hg?

I am on a new install of Debian 8 Jessie


I've built and installed sdl2, sdl_image and now trying to make sdl_ttf I get this error:
collect2: error: ld returned 1 exit status
Makefile:504: recipe for target 'glfont' failed



What packages am I missing?



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Unsubscribe
Daniel Gibson
Guest

What part of "FYI you’re sending messages to the SDL mailing list,
rather than actually unsubscribing. You can unsubscribe from this page:
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org"
did you not understand?

On 11/03/2015 02:47 PM, James Barrett wrote:
Quote:
Unsubscribe

On Nov 3, 2015 12:58 AM, "Owen Alanzo Hogarth"
<mailto:> wrote:

what are the dependencies to compile sdl_ttf from hg?

I am on a new install of Debian 8 Jessie

I've built and installed sdl2, sdl_image and now trying to make
sdl_ttf I get this error:
collect2: error: ld returned 1 exit status
Makefile:504: recipe for target 'glfont' failed

What packages am I missing?

_______________________________________________
SDL mailing list
<mailto:
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Unsubscribe
James Barrett
Guest

Link bait, you get kickbacks from advertisers. Sending a command through email should work. On Nov 3, 2015 8:49 AM, "Daniel Gibson" wrote:
Quote:
What part of "FYI you’re sending messages to the SDL mailing list, rather than actually unsubscribing. You can unsubscribe from this page: http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org"
did you not understand?

On 11/03/2015 02:47 PM, James Barrett wrote:
Quote:
Unsubscribe

On Nov 3, 2015 12:58 AM, "Owen Alanzo Hogarth"
<mailto:> wrote:

    what are the dependencies to compile sdl_ttf from hg?

    I am on a new install of Debian 8 Jessie

    I've built and installed sdl2, sdl_image and now trying to make
    sdl_ttf I get this error:
    collect2: error: ld returned 1 exit status
    Makefile:504: recipe for target 'glfont' failed

    What packages am I missing?

    _______________________________________________
    SDL mailing list
    <mailto:
    http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Unsubscribe
Alex Baines
Guest

The link is perfectly legit, but if you really must unsubscribe via
email you should use the address given in the List-Unsubscribe email
header, instead of this one.

i.e. send an email to with unsubscribe as
the subject


On 03/11/15 13:51, James Barrett wrote:
Quote:
Link bait, you get kickbacks from advertisers. Sending a command through
email should work.
On Nov 3, 2015 8:49 AM, "Daniel Gibson" wrote:

Quote:
What part of "FYI you’re sending messages to the SDL mailing list, rather
than actually unsubscribing. You can unsubscribe from this page:
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org"
did you not understand?

On 11/03/2015 02:47 PM, James Barrett wrote:

Quote:
Unsubscribe

On Nov 3, 2015 12:58 AM, "Owen Alanzo Hogarth"
<mailto:> wrote:

what are the dependencies to compile sdl_ttf from hg?

I am on a new install of Debian 8 Jessie

I've built and installed sdl2, sdl_image and now trying to make
sdl_ttf I get this error:
collect2: error: ld returned 1 exit status
Makefile:504: recipe for target 'glfont' failed

What packages am I missing?

_______________________________________________
SDL mailing list
<mailto:
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Unsubscribe
Jonny D


Joined: 12 Sep 2009
Posts: 932
Did you not notice that this is the very link that every email on this list includes in the footer?  Baseless accusations of "link bait" on an email list that you signed up for?  Really?!

Jonny D




On Tue, Nov 3, 2015 at 8:53 AM, Alex Baines wrote:
Quote:
The link is perfectly legit, but if you really must unsubscribe via
email you should use the address given in the List-Unsubscribe email
header, instead of this one.

i.e. send an email to with unsubscribe as
the subject


On 03/11/15 13:51, James Barrett wrote:
Quote:
Link bait, you get kickbacks from advertisers. Sending a command through
email should work.
On Nov 3, 2015 8:49 AM, "Daniel Gibson" wrote:

Quote:
What part of "FYI you’re sending messages to the SDL mailing list, rather
than actually unsubscribing. You can unsubscribe from this page:
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org"
did you not understand?

On 11/03/2015 02:47 PM, James Barrett wrote:

Quote:
Unsubscribe

On Nov 3, 2015 12:58 AM, "Owen Alanzo Hogarth"
<mailto:> wrote:

     what are the dependencies to compile sdl_ttf from hg?

     I am on a new install of Debian 8 Jessie

     I've built and installed sdl2, sdl_image and now trying to make
     sdl_ttf I get this error:
     collect2: error: ld returned 1 exit status
     Makefile:504: recipe for target 'glfont' failed

     What packages am I missing?

     _______________________________________________
     SDL mailing list
      <mailto:
     http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org