- November 19, 2013 at 6:29 pm #31549
Is antialiasing supposed to work on Windows 7 host with some NVidia GTX 460?
Can’t get it to kick in 🙁November 20, 2013 at 7:16 pm #38227
Antialiasing should work with most cards. In your application you just need to select an appropriate EGL config by setting EGL_SAMPLE_BUFFERS and EGL_SAMPLES.
If you are using PVRShell or running the examples provided with the SDK, this is done automatically, but you need to pass an additional command line option to specify the number of samples to use.
For example, for 4 samples:
OGLES2FilmTV.exe -aasamples=4November 21, 2013 at 11:58 am #38228
Ok it works if you request an antialiased config the first time you initialize EGL.
It won’t work if you init EGL first without antialias and during the life time of you application reinit EGL with an antialiased config. The proper config is returned by eglChooseConfig but antialias won’t kick in.
I observed that behaviour on a Windows 7 machine.November 21, 2013 at 12:02 pm #38229
The opposite is also true. If you init first with antialias then you can’t disable it. Maybe I need to delete my HWND on top of reinitializing EGL.November 26, 2013 at 10:42 am #38230
Hi Slion, sorry for the delay. I’m going to see if I can reproduce this issue here. It sounds like you have found a bug in the emulator.December 6, 2013 at 11:50 am #38231
I’ve been investigating and it looks like you will need to recreate your window each time you change the framebuffer configuration. Sadly it’s not possible to set the pixel format of a GDI window more than once so an internal error will occur inside eglCreateWindowSurface if you pass in a HWND which you’ve already used. I’ll update the emulator to report an appropriate EGL error in this case.
Hope this helps clear things up a bit!