android... fixed stuff..

master
steffen 13 years ago
parent 4817c88996
commit 36592a0d14

@ -265,6 +265,16 @@ void gfx_draw_polygon (struct image *dimg, iPoint *p, int pcnt, struct line_styl
glUniform4fv(engine.gles_color, 1, c.c.array); glUniform4fv(engine.gles_color, 1, c.c.array);
glVertexAttribPointer (engine.gles_pos, 3, GL_FLOAT, GL_FALSE, 0, polygon); glVertexAttribPointer (engine.gles_pos, 3, GL_FLOAT, GL_FALSE, 0, polygon);
glDrawArrays (GL_TRIANGLE_FAN, 0, pcnt); glDrawArrays (GL_TRIANGLE_FAN, 0, pcnt);
if (style.width < 1.0) style.width = 1.0;
glLineWidth (style.width);
glUseProgram (engine.gles_prgobject);
glUniform1i (engine.gles_txenabled, 0);
glUniform4fv(engine.gles_color, 1, style.c.c.array);
glVertexAttribPointer (engine.gles_pos, 3, GL_FLOAT, GL_FALSE, 0, polygon);
glDrawArrays (GL_LINE_LOOP, 0, pcnt);
}; };

Loading…
Cancel
Save