mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 14:50:36 +02:00
Simplify sync
This commit is contained in:
parent
e6664d9441
commit
804e6a805e
1 changed files with 3 additions and 10 deletions
|
@ -34,17 +34,13 @@ GLBackend::GLInputFormat* GLBackend::syncGPUObject(const Stream::Format& inputFo
|
|||
|
||||
void GLBackend::do_setInputFormat(Batch& batch, size_t paramOffset) {
|
||||
Stream::FormatPointer format = batch._streamFormats.get(batch._params[paramOffset]._uint);
|
||||
GLInputFormat* ifo = GLBackend::syncGPUObject(*format);
|
||||
if (ifo) {
|
||||
if(GLBackend::syncGPUObject(*format)) {
|
||||
if (format != _input._format) {
|
||||
_input._format = format;
|
||||
_input._invalidFormat = true;
|
||||
if (format) {
|
||||
if (_input._formatKey != format->getKey()) {
|
||||
_input._formatKey = format->getKey();
|
||||
_input._invalidFormat = true;
|
||||
}
|
||||
_input._formatKey = format->getKey();
|
||||
} else {
|
||||
_input._invalidFormat = true;
|
||||
_input._formatKey.clear();
|
||||
}
|
||||
}
|
||||
|
@ -87,9 +83,6 @@ void GLBackend::do_setInputBuffer(Batch& batch, size_t paramOffset) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void GLBackend::initInput() {
|
||||
if(!_input._defaultVAO) {
|
||||
glGenVertexArrays(1, &_input._defaultVAO);
|
||||
|
|
Loading…
Reference in a new issue