git-svn-id: svn://db.shs.com.ru/libs@287 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -83,6 +83,9 @@ void GLVBO::calculateBinormals() {
|
||||
|
||||
|
||||
bool GLVBO::rebuffer(bool clear_) {
|
||||
#if QT_VERSION >= 0x050600
|
||||
initializeOpenGLFunctions();
|
||||
#endif
|
||||
QVector<GLfloat> data;
|
||||
//data.clear();
|
||||
calculateBinormals();
|
||||
|
||||
@@ -293,6 +293,7 @@ void QGLView::paintGL() {
|
||||
//objects_.preparePos(camera());
|
||||
|
||||
static GLRendererBase * prev_rend = 0;
|
||||
glShadeModel(GL_SMOOTH);
|
||||
if (prev_rend != renderer_) {
|
||||
prev_rend = renderer_;
|
||||
if (renderer_ != 0) {
|
||||
|
||||
Reference in New Issue
Block a user