Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Trying to port SFML 2.0 context creation to EGL...  (Read 2744 times)

0 Members and 1 Guest are viewing this topic.

kkitsune

  • Newbie
  • *
  • Posts: 6
    • View Profile
Trying to port SFML 2.0 context creation to EGL...
« on: June 19, 2012, 05:09:40 am »
Hi all!
Just today, I made a fork on GitHub and began some work to port SFML 2.0 context creation to EGL on Windows (and Linux eventually) using PowerVR SDK Why? Because I've just ordered my very own PandaBoard ES and I want to use SFML to make some cool little apps.

But now I'm stuck...I don't know if anybody know more than me (and Google doesn't for the first time :( ) but when creating the EGL Context I get an Error 0x3003, whick is a 'Bad Alloc'...

If someone can help me I'll really appreciate!

My repo : https://github.com/kkitsune/SFML-EGL
My code : https://github.com/kkitsune/SFML-EGL/tree/master/src/SFML/Window/EGL

P.S. : Sorry if I'm not in the right forum...I think it's the best match for my question
P.P.S : And Sorry for my english...It is not my native language

Thanks in advance!

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Trying to port SFML 2.0 context creation to EGL...
« Reply #1 on: June 19, 2012, 01:57:02 pm »
Can't test it right now - would love to see SFML on Android and other similar platforms. :)

Judging by the sdk docs there's some issue with the available memory:

Quote
EGL_BAD_ALLOC is generated if there are not enough resources to allocate the new context.

Are you sure your parameters are fine (i.e. your returned desktop size and stuff)?

Edit: What toolchain are you using for Windows 7? MSVC? GCC? LLVM?
« Last Edit: June 19, 2012, 02:06:35 pm by Mario »

kkitsune

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Trying to port SFML 2.0 context creation to EGL...
« Reply #2 on: June 19, 2012, 03:03:26 pm »
I'm using MSVC 10 and I've just went over debugging this...line by line...and still the only problem is in CreateContext for reasons unknown to me...

Not enough resources? I'm on 64-bit with 8gigs of RAM...why is there suddenly no more space?

kkitsune

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Trying to port SFML 2.0 context creation to EGL...
« Reply #3 on: June 19, 2012, 05:33:11 pm »
Got it working!!!
Still don't know the problem but I changed my ES Emulator from PowerVR SDK to Angle and it works now!

 

anything