git-svn-id: svn://db.shs.com.ru/libs@286 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -33,6 +33,9 @@ GLVBO::~GLVBO() {
|
||||
|
||||
|
||||
void GLVBO::init() {
|
||||
#if QT_VERSION >= 0x050600
|
||||
initializeOpenGLFunctions();
|
||||
#endif
|
||||
if (!isIinit()) {
|
||||
//glGenVertexArrays(1, &va_);
|
||||
glGenBuffers(1, &buffer_);
|
||||
@@ -114,7 +117,7 @@ bool GLVBO::rebuffer(bool clear_) {
|
||||
}
|
||||
|
||||
|
||||
void GLVBO::draw(GLenum type, QGLShaderProgram * prog, bool simplest) {
|
||||
void GLVBO::draw(GLenum type, __GLShaderProgram__ * prog, bool simplest) {
|
||||
if (buffer_ == 0 || vert_count == 0) return;
|
||||
if (changed) rebuffer();
|
||||
//qDebug() << "draw" << vert_count;
|
||||
|
||||
Reference in New Issue
Block a user