I am running a bsp loader that I found on the internet. It loads and renders (using opengl) version 46 bsp files (quake 3). When I run the application with the bsp file that comes with this sample program it displays four interconnected rooms with textures and lighting.
When I try to create my own simple room (four walls, ceiling, and floor) using gtkradiant and then load this bsp. I am able to load and render the bsp file but all six faces simply show up as triangles (properly textured) not the rectangles that they should show up as.
Any idea what I may be doing wrong (presumably in the bsp compilation phase) that would cause these polygons to show up as triangles?
When I look at the code I see that the faces (polygons) are all being rendered using the GL_TRIANGLE_FAN: