mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Attempt to unbreak OpenGL ES build
This commit is contained in:
parent
fffc982206
commit
1c8f6f378a
@ -350,6 +350,7 @@ rebuild_bitplanes() {
|
|||||||
bind_slot(face, rb_resize, attach, (RenderTexturePlane)(RTP_aux_float_0+i), next);
|
bind_slot(face, rb_resize, attach, (RenderTexturePlane)(RTP_aux_float_0+i), next);
|
||||||
next += 1;
|
next += 1;
|
||||||
}
|
}
|
||||||
|
#endif // OPENGLES
|
||||||
|
|
||||||
// Clear if the fbo was just created, regardless of the clear settings per frame.
|
// Clear if the fbo was just created, regardless of the clear settings per frame.
|
||||||
if (_initial_clear) {
|
if (_initial_clear) {
|
||||||
@ -366,6 +367,7 @@ rebuild_bitplanes() {
|
|||||||
glgsg->bind_fbo(_fbo_multisample);
|
glgsg->bind_fbo(_fbo_multisample);
|
||||||
bind_slot_multisample(rb_resize, attach, RTP_depth, GL_DEPTH_ATTACHMENT_EXT);
|
bind_slot_multisample(rb_resize, attach, RTP_depth, GL_DEPTH_ATTACHMENT_EXT);
|
||||||
bind_slot_multisample(rb_resize, attach, RTP_color, GL_COLOR_ATTACHMENT0_EXT);
|
bind_slot_multisample(rb_resize, attach, RTP_color, GL_COLOR_ATTACHMENT0_EXT);
|
||||||
|
#ifndef OPENGLES
|
||||||
int next = GL_COLOR_ATTACHMENT1_EXT;
|
int next = GL_COLOR_ATTACHMENT1_EXT;
|
||||||
for (int i=0; i<_fb_properties.get_aux_rgba(); i++) {
|
for (int i=0; i<_fb_properties.get_aux_rgba(); i++) {
|
||||||
bind_slot_multisample(rb_resize, attach, (RenderTexturePlane)(RTP_aux_rgba_0+i), next);
|
bind_slot_multisample(rb_resize, attach, (RenderTexturePlane)(RTP_aux_rgba_0+i), next);
|
||||||
@ -379,6 +381,7 @@ rebuild_bitplanes() {
|
|||||||
bind_slot_multisample(rb_resize, attach, (RenderTexturePlane)(RTP_aux_float_0+i), next);
|
bind_slot_multisample(rb_resize, attach, (RenderTexturePlane)(RTP_aux_float_0+i), next);
|
||||||
next += 1;
|
next += 1;
|
||||||
}
|
}
|
||||||
|
#endif // OPENGLES
|
||||||
glEnable(GL_MULTISAMPLE);
|
glEnable(GL_MULTISAMPLE);
|
||||||
|
|
||||||
if (_initial_clear) {
|
if (_initial_clear) {
|
||||||
@ -388,7 +391,6 @@ rebuild_bitplanes() {
|
|||||||
} else {
|
} else {
|
||||||
glDisable(GL_MULTISAMPLE);
|
glDisable(GL_MULTISAMPLE);
|
||||||
}
|
}
|
||||||
#endif // OPENGLES
|
|
||||||
|
|
||||||
_initial_clear = false;
|
_initial_clear = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user