// You could get texture once and store as an instance variable var _texture = sprite_get_texture(sprite_index, image_index); // Set tex repeat and construct/draw the primitive if !gpu_get_texrepeat() gpu_set_texrepeat(true); draw_primitive_begin_texture(pr_trianglestrip, _texture); draw_vertex_texture(bbox_left, bbox_top, 0, 0); draw_vertex_texture(bbox_right, bbox_top, image_xscale, 0); draw_vertex_texture(bbox_left, bbox_bottom, 0, image_yscale); draw_vertex_texture(bbox_right, bbox_bottom, image_xscale, image_yscale); draw_primitive_end();