Commit 7bc45db3 authored by Robert Menzel's avatar Robert Menzel

fixed wrong version check

parent 8e27a4ed
......@@ -293,8 +293,8 @@ public:
// =================================================================================================== \/
protected:
GLenum mTarget;
GLint64 mSize; // as this might get queried often (e.g. ArrayBuffer) we will explicitly mirror it in RAM)
SharedBufferObject mBuffer;
GLint64 mSize; // as this might get queried often (e.g. ArrayBuffer) we will explicitly mirror it in RAM)
};
ACGL_SHARED_TYPEDEF(Buffer)
......
......@@ -94,12 +94,14 @@ public:
// ===================================================================================================== \/
public:
inline GLint getUniformLocation (const std::string& _nameInShader) const { return glGetUniformLocation (mObjectName, _nameInShader.c_str()); }
#if (ACGL_OPENGL_VERSION >= 30)
inline GLint getAttributeLocation (const std::string& _nameInShader) const { return glGetAttribLocation (mObjectName, _nameInShader.c_str()); }
inline GLint getFragmentDataLocation (const std::string& _nameInShader) const { return glGetFragDataLocation(mObjectName, _nameInShader.c_str()); }
inline void bindAttributeLocation (const std::string& _nameInShader, GLuint _location) const { glBindAttribLocation (mObjectName, _location, _nameInShader.c_str()); }
#if (ACGL_OPENGL_VERSION >= 30)
inline GLint getFragmentDataLocation (const std::string& _nameInShader) const { return glGetFragDataLocation(mObjectName, _nameInShader.c_str()); }
inline void bindFragmentDataLocation (const std::string& _nameInShader, GLuint _location) const { glBindFragDataLocation (mObjectName, _location, _nameInShader.c_str()); }
#endif // OpenGL >= 3.0
inline void use(void) const { glUseProgram(mObjectName); }
inline void attachShader(const ConstSharedShader& _shader)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment