I\'m Using OpenGlEs10 for My Android Game Development, I Want to Draw Dashed-lines Now Im Using This Code to Draw My Line:
You don't have to use a texture, you can simply use the function glLineStipple(GLint factor, GLushort pattern) and then call glEnable(GL_LINE_STIPPLE).
glLineStipple(GLint factor, GLushort pattern)
glEnable(GL_LINE_STIPPLE)
For more information about glLineStipple and its arguments you can have a look at this.
glLineStipple