glLineWidth problems


I’m using OpenGL ES for the iPhone and am having a problem with using glLineWidth. When I render a line with glLineWidth set to something like 5.0 using the iPhone simulator ( an emulator that runs on a Mac ) everything works fine. However, when I try the same code on an actual device the lines always render with a width of 1 pixel.

Is there something special I need to do to get this working on an actual device? Any help would be great! Thanks!

You might want to check for the supported line width range on the device. Per API spec, lines wider than 1 pixel do not necessarily need to be supported.

  • HM

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.