Skip to main content
added 2 characters in body
Source Link
Nicol Bolas
  • 26.1k
  • 3
  • 78
  • 104

In your code you need 4 texture coords; one for each vertexposition in vertices.

tex_coord[2] & text_coord[3] are the same, even though they are for different vertices.

Change text_coord[2] to 1.0,0 ; should fix the problem.

In your code you need 4 texture coords; one for each vertex in vertices.

tex_coord[2] & text_coord[3] are the same, even though they are for different vertices.

Change text_coord[2] to 1.0,0 ; should fix the problem.

In your code you need 4 texture coords; one for each position in vertices.

tex_coord[2] & text_coord[3] are the same, even though they are for different vertices.

Change text_coord[2] to 1.0,0 ; should fix the problem.

Source Link
Ken
  • 6.1k
  • 3
  • 36
  • 51

In your code you need 4 texture coords; one for each vertex in vertices.

tex_coord[2] & text_coord[3] are the same, even though they are for different vertices.

Change text_coord[2] to 1.0,0 ; should fix the problem.