Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird results as shown on the second image below (the first image is how it looks with SDL, correctly). The single changeset that causes this is this one, do you see something obviously wrong there, or does SDL2 have some OpenGL nuances I'm unaware of? My SDL is based on the latest from HG.

Update: another question about the iOS port of the same project is hereis here.

Update 2: this is now also on the SDL newsgroup: http://thread.gmane.org/gmane.comp.lib.sdl/58026

Update 3: I tried using Regal for portable OpenGL, the not-so-good result is on the third screenshot, produced merely by replacing

#include <OpenGL/gl.h>
#include <OpenGL/glu.h>

with

#include "GL/Regal.h"
#include "GL/RegalGLU.h"

using SDL 1.2 using SDL 2 using Regal with SDL 2

I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird results as shown on the second image below (the first image is how it looks with SDL, correctly). The single changeset that causes this is this one, do you see something obviously wrong there, or does SDL2 have some OpenGL nuances I'm unaware of? My SDL is based on the latest from HG.

Update: another question about the iOS port of the same project is here.

Update 2: this is now also on the SDL newsgroup: http://thread.gmane.org/gmane.comp.lib.sdl/58026

Update 3: I tried using Regal for portable OpenGL, the not-so-good result is on the third screenshot, produced merely by replacing

#include <OpenGL/gl.h>
#include <OpenGL/glu.h>

with

#include "GL/Regal.h"
#include "GL/RegalGLU.h"

using SDL 1.2 using SDL 2 using Regal with SDL 2

I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird results as shown on the second image below (the first image is how it looks with SDL, correctly). The single changeset that causes this is this one, do you see something obviously wrong there, or does SDL2 have some OpenGL nuances I'm unaware of? My SDL is based on the latest from HG.

Update: another question about the iOS port of the same project is here.

Update 2: this is now also on the SDL newsgroup: http://thread.gmane.org/gmane.comp.lib.sdl/58026

Update 3: I tried using Regal for portable OpenGL, the not-so-good result is on the third screenshot, produced merely by replacing

#include <OpenGL/gl.h>
#include <OpenGL/glu.h>

with

#include "GL/Regal.h"
#include "GL/RegalGLU.h"

using SDL 1.2 using SDL 2 using Regal with SDL 2

Notice removed Draw attention by CommunityBot
Bounty Ended with Steven's answer chosen by CommunityBot
deleted 113 characters in body
Source Link
Gabor
  • 107
  • 1
  • 7

I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird results as shown on the second image below (the first image is how it looks with SDL, correctly). The single changeset that causes this is this one, do you see something obviously wrong there, or does SDL2 have some OpenGL nuances I'm unaware of? My SDL is based on the latest from HG.

Update: another question about the iOS port of the same project is here.

Update 2: if any of you could post this is now also on the SDL forum, I would be grateful. http://forums.libsdl.org/ always gives me this errornewsgroup: "Sorry, but only users granted special access can post topics in this forum."http://thread.gmane.org/gmane.comp.lib.sdl/58026

Update 3: I tried using Regal for portable OpenGL, the not-so-good result is on the third screenshot, produced merely by replacing

#include <OpenGL/gl.h>
#include <OpenGL/glu.h>

with

#include "GL/Regal.h"
#include "GL/RegalGLU.h"

using SDL 1.2 using SDL 2 using Regal with SDL 2

I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird results as shown on the second image below (the first image is how it looks with SDL, correctly). The single changeset that causes this is this one, do you see something obviously wrong there, or does SDL2 have some OpenGL nuances I'm unaware of? My SDL is based on the latest from HG.

Update: another question about the iOS port of the same project is here.

Update 2: if any of you could post this on the SDL forum, I would be grateful. http://forums.libsdl.org/ always gives me this error: "Sorry, but only users granted special access can post topics in this forum."

Update 3: I tried using Regal for portable OpenGL, the not-so-good result is on the third screenshot, produced merely by replacing

#include <OpenGL/gl.h>
#include <OpenGL/glu.h>

with

#include "GL/Regal.h"
#include "GL/RegalGLU.h"

using SDL 1.2 using SDL 2 using Regal with SDL 2

I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird results as shown on the second image below (the first image is how it looks with SDL, correctly). The single changeset that causes this is this one, do you see something obviously wrong there, or does SDL2 have some OpenGL nuances I'm unaware of? My SDL is based on the latest from HG.

Update: another question about the iOS port of the same project is here.

Update 2: this is now also on the SDL newsgroup: http://thread.gmane.org/gmane.comp.lib.sdl/58026

Update 3: I tried using Regal for portable OpenGL, the not-so-good result is on the third screenshot, produced merely by replacing

#include <OpenGL/gl.h>
#include <OpenGL/glu.h>

with

#include "GL/Regal.h"
#include "GL/RegalGLU.h"

using SDL 1.2 using SDL 2 using Regal with SDL 2

Notice added Draw attention by Gabor
Bounty Started worth 50 reputation by Gabor
not lucky :(
Source Link
Gabor
  • 107
  • 1
  • 7

I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird results as shown on the second image below (the first image is how it looks with SDL, correctly). The single changeset that causes this is this one, do you see something obviously wrong there, or does SDL2 have some OpenGL nuances I'm unaware of? My SDL is based on the latest from HG.

Update: another question about the iOS port of the same project is here.   

Update 2: if any of you could post this on the SDL forum, I would be grateful. http://forums.libsdl.org/ always gives me this error: "Sorry, but only users granted special access can post topics in this forum."

Update 3: I tried using Regal for portable OpenGL, the not-so-good result is on the third screenshot, produced merely by replacing

#include <OpenGL/gl.h>
#include <OpenGL/glu.h>

with

#include "GL/Regal.h"
#include "GL/RegalGLU.h"

using SDL 1.2 using SDL 2 using Regal with SDL 2

I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird results as shown on the second image below (the first image is how it looks with SDL, correctly). The single changeset that causes this is this one, do you see something obviously wrong there, or does SDL2 have some OpenGL nuances I'm unaware of? My SDL is based on the latest from HG.

Update: another question about the iOS port of the same project is here.  Update 2: if any of you could post this on the SDL forum, I would be grateful. http://forums.libsdl.org/ always gives me this error: "Sorry, but only users granted special access can post topics in this forum."

using SDL 1.2 using SDL 2

I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird results as shown on the second image below (the first image is how it looks with SDL, correctly). The single changeset that causes this is this one, do you see something obviously wrong there, or does SDL2 have some OpenGL nuances I'm unaware of? My SDL is based on the latest from HG.

Update: another question about the iOS port of the same project is here. 

Update 2: if any of you could post this on the SDL forum, I would be grateful. http://forums.libsdl.org/ always gives me this error: "Sorry, but only users granted special access can post topics in this forum."

Update 3: I tried using Regal for portable OpenGL, the not-so-good result is on the third screenshot, produced merely by replacing

#include <OpenGL/gl.h>
#include <OpenGL/glu.h>

with

#include "GL/Regal.h"
#include "GL/RegalGLU.h"

using SDL 1.2 using SDL 2 using Regal with SDL 2

corrected tags
Link
Gabor
  • 107
  • 1
  • 7
Loading
added 220 characters in body; edited tags
Source Link
Gabor
  • 107
  • 1
  • 7
Loading
Tweeted twitter.com/#!/StackGameDev/status/263715892477702144
deleted 119 characters in body
Source Link
Gabor
  • 107
  • 1
  • 7
Loading
update (see addition with bold characters)
Source Link
Gabor
  • 107
  • 1
  • 7
Loading
link now points to latest changeset; still don't see relevant changes, though
Source Link
Gabor
  • 107
  • 1
  • 7
Loading
Source Link
Gabor
  • 107
  • 1
  • 7
Loading