mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
Fix obscure compile error
This commit is contained in:
parent
bfe7a7b1d3
commit
8b67ab31f5
@ -514,7 +514,8 @@ rebuild_bitplanes() {
|
|||||||
if (num_fbos > _fbo.size()) {
|
if (num_fbos > _fbo.size()) {
|
||||||
// Generate more FBO handles.
|
// Generate more FBO handles.
|
||||||
int start = _fbo.size();
|
int start = _fbo.size();
|
||||||
_fbo.resize(num_fbos, 0);
|
GLuint zero = 0;
|
||||||
|
_fbo.resize(num_fbos, zero);
|
||||||
glgsg->_glGenFramebuffers(num_fbos - start, &_fbo[start]);
|
glgsg->_glGenFramebuffers(num_fbos - start, &_fbo[start]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2145,7 +2145,8 @@ update_shader_vertex_arrays(ShaderContext *prev, bool force) {
|
|||||||
|
|
||||||
// Bind the vertex buffer to the binding index.
|
// Bind the vertex buffer to the binding index.
|
||||||
if (ai >= _glgsg->_current_vertex_buffers.size()) {
|
if (ai >= _glgsg->_current_vertex_buffers.size()) {
|
||||||
_glgsg->_current_vertex_buffers.resize(ai + 1, 0);
|
GLuint zero = 0;
|
||||||
|
_glgsg->_current_vertex_buffers.resize(ai + 1, zero);
|
||||||
}
|
}
|
||||||
if (_glgsg->_current_vertex_buffers[ai] != gvbc->_index) {
|
if (_glgsg->_current_vertex_buffers[ai] != gvbc->_index) {
|
||||||
_glgsg->_glBindVertexBuffer(ai, gvbc->_index, 0, stride);
|
_glgsg->_glBindVertexBuffer(ai, gvbc->_index, 0, stride);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user