From ccf24d1777ff835be82ffdd77120271e9f86212a Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 20 Sep 2009 01:32:28 +0000 Subject: [PATCH] getting ready to add GL calls to ag.cc git-svn-id: svn://anubis/anaglym/trunk@24 99a6e188-d820-4881-8870-2d33a10e2619 --- ag.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ag.cc b/ag.cc index 87cd4ad..73113c9 100644 --- a/ag.cc +++ b/ag.cc @@ -7,6 +7,8 @@ #include #include #include +#include +#include using namespace std; namespace ag @@ -99,13 +101,14 @@ namespace ag { string modelname = lua_tostring(L, -1); size_t pos = modelname.find_first_not_of(FILENAME_SAFE_CHARS); - if (pos != string::npos) + if (pos == string::npos) { string path = locateResource(modelname); if (path != "") { WFObj * obj = new WFObj(); obj->load(path); + GLuint dl = obj->render(); } } }