| 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 25 * POSSIBILITY OF SUCH DAMAGE. |
25 * POSSIBILITY OF SUCH DAMAGE. |
| 26 */ |
26 */ |
| 27 |
27 |
| |
28 #include "ascension/error.h" |
| 28 #include "ascension/mesh.h" |
29 #include "ascension/mesh.h" |
| 29 #include "ascension/context.h" |
|
| 30 |
30 |
| 31 #include <GL/glew.h> |
31 #include <GL/glew.h> |
| 32 #include <assert.h> |
|
| 33 |
32 |
| 34 void asc_mesh_allocate_buffers(AscMesh *mesh, unsigned count) { |
33 void asc_mesh_allocate_buffers(AscMesh *mesh, unsigned count) { |
| 35 asc_dprintf("Allocate mesh buffers for %u meshes.", count); |
34 asc_dprintf("Allocate mesh buffers for %u meshes.", count); |
| 36 GLuint buffers[count]; |
35 GLuint buffers[count]; |
| 37 GLuint arrays[count]; |
36 GLuint arrays[count]; |