mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Fix obscure GL crash
This commit is contained in:
parent
e8e155f218
commit
4206e349c9
@ -155,7 +155,7 @@ begin_frame(FrameMode mode, Thread *current_thread) {
|
||||
for (it = _texture_contexts.begin(); it != _texture_contexts.end(); ++it) {
|
||||
CLP(TextureContext) *gtc = *it;
|
||||
|
||||
if (gtc->needs_barrier(GL_FRAMEBUFFER_BARRIER_BIT)) {
|
||||
if (gtc != NULL && gtc->needs_barrier(GL_FRAMEBUFFER_BARRIER_BIT)) {
|
||||
glgsg->issue_memory_barrier(GL_FRAMEBUFFER_BARRIER_BIT);
|
||||
// If we've done it for one, we've done it for all.
|
||||
break;
|
||||
@ -1656,7 +1656,7 @@ resolve_multisamples() {
|
||||
for (it = _texture_contexts.begin(); it != _texture_contexts.end(); ++it) {
|
||||
CLP(TextureContext) *gtc = *it;
|
||||
|
||||
if (gtc->needs_barrier(GL_FRAMEBUFFER_BARRIER_BIT)) {
|
||||
if (gtc != NULL && gtc->needs_barrier(GL_FRAMEBUFFER_BARRIER_BIT)) {
|
||||
glgsg->issue_memory_barrier(GL_FRAMEBUFFER_BARRIER_BIT);
|
||||
// If we've done it for one, we've done it for all.
|
||||
break;
|
||||
|
@ -7045,6 +7045,9 @@ report_extensions() const {
|
||||
out.put(' ');
|
||||
}
|
||||
out << ' ' << (*ei);
|
||||
} else {
|
||||
out.put('\n');
|
||||
break;
|
||||
}
|
||||
}
|
||||
out.put('\n');
|
||||
|
Loading…
x
Reference in New Issue
Block a user