I just bought a new graphic card (Radeon HD4670) and with this car my OpenGL Game got a little problem that I didn’t have with my old Radeon 7600.
All the antialiasing seems to be gone. The fonts and polygons are horrible :s.
I can’t figure out where the problem comes from.
From the following screenshot I would say that there is a blending problem.
As you can see, the lightmaps (there is a second polygone drawn on the wall for the lightmap, no multitexturing for that, just blending) are just horrible.
The textures are not merged smoothly as they were on my old graphic card.
i think the problem with your lightmap is caused by z-fighting,
especially when your DRAW_HOUSE() and DRAW_LIGHTMAPS() are dealing different but approached meshes.
maybe ‘glPolygonOffset’ will work( i didn’t have a try ),
but at least i think you should set ‘glDepthFunc’ with ‘GL_LEQUAL’ rather than ‘GL_EQUAL’ when you draw lightmaps.
ephtracy is right, it is typically a z-fighting problem. But your blending and depth setup look also wrong…
Why using GL_EQUAL as depth function? It approximatively never happens.
Anyway, the way you are doing it is very uneffcient, you are rendering twice the scene geometry just for blending two textures, you better use multitexturing or shaders.