ARM Community: Help on eglCreateContext error 0x3005 - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help on eglCreateContext error 0x3005 Help using VS2008 eglCreateContext error 0x3005 with Windows 7

#1 User is offline   LittleBen 

  • Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 12-July 10

Posted 12 July 2010 - 06:44 PM

Hi all,

I have been trying to use the Mali emulator on my laptop using the Beta version 1.2.

Everything is installed correctly but at runtime, when I try to create the context (using eglCreateContext), I'm always receiving the error 0x3005 (EGL_BAD_CONFIG).

For testing purpose, I have reduce to the minimum the aEGLAttributes in order to get the maximum EGL config and I have tried to initialize all of them without sucess.

I have already used this SDK on another laptop with windows XP and it's works fine with the default configuration.

I have done two trial on my laptop and a desktop both with windows 7 and it's the same results.

Both computer are in 64bits with NVIDIA graphic cards (310M and 250 GTS).

I have no clue on how to solve this issue. May be the runtime lib are not compatible with the windows 7/64bits architecture...

Thanks,

Ben
0

#2 User is offline   LittleBen 

  • Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 12-July 10

Posted 13 July 2010 - 12:51 AM

View PostLittleBen, on Jul 12 2010, 07:44 PM, said:

Hi all,

I have been trying to use the Mali emulator on my laptop using the Beta version 1.2.

Everything is installed correctly but at runtime, when I try to create the context (using eglCreateContext), I'm always receiving the error 0x3005 (EGL_BAD_CONFIG).

For testing purpose, I have reduce to the minimum the aEGLAttributes in order to get the maximum EGL config and I have tried to initialize all of them without sucess.

I have already used this SDK on another laptop with windows XP and it's works fine with the default configuration.

I have done two trial on my laptop and a desktop both with windows 7 and it's the same results.

Both computer are in 64bits with NVIDIA graphic cards (310M and 250 GTS).

I have no clue on how to solve this issue. May be the runtime lib are not compatible with the windows 7/64bits architecture...

Thanks,

Ben


I have finally found the issue.

in cube.c, the following code is miss placed :

#ifdef _WIN32
hWindow = create_window(uiWidth, uiHeight);
#else
hWindow = create_window("OpenGL ES 2.0 Example on a Linux Desktop", uiWidth,
uiHeight, hDisplay, sEGLDisplay, aEGLConfigs[0], &colormap, &pVisual);
#endif

it should be before
#ifdef _WIN32
hDisplay = GetDC(hWindow);
#else
hDisplay = XOpenDisplay(NULL);
#endif

for the windows case.

But I don't think the linux case will still works B)

Cheers,

Ben
0

#3 User is offline   CarlBateman 

  • Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 30-September 10

Posted 30 September 2010 - 09:08 PM

Hey,

I've had exactly the same problem with OpenGL ES 2.0 Emulator v1.2 [23-Jul-2010] on my Vaio SZ2M/B with GeForce Go 7400 running Vista, so many thanks for posting the solution. :)

It might be worth noting that you also changed
hDisplay = GetDC(NULL);
to
hDisplay = GetDC(hWindow);

Carl
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic