mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Made FBO's on linux work again
This commit is contained in:
parent
2982ca3187
commit
afb4776754
@ -227,7 +227,7 @@ rebuild_bitplanes() {
|
||||
|
||||
Texture *attach[RTP_COUNT];
|
||||
attach[RTP_color] = 0;
|
||||
attach[RTP_depth] = 0;
|
||||
//attach[RTP_depth] = 0;
|
||||
attach[RTP_depth_stencil] = 0;
|
||||
for (int i=0; i<_fb_properties.get_aux_rgba(); i++) {
|
||||
attach[RTP_aux_rgba_0+i] = 0;
|
||||
@ -270,7 +270,7 @@ rebuild_bitplanes() {
|
||||
|
||||
// For all slots, update the slot.
|
||||
|
||||
bind_slot(rb_resize, attach, RTP_depth, GL_DEPTH_ATTACHMENT_EXT);
|
||||
//bind_slot(rb_resize, attach, RTP_depth, GL_DEPTH_ATTACHMENT_EXT);
|
||||
bind_slot(rb_resize, attach, RTP_depth_stencil, GL_DEPTH_ATTACHMENT_EXT);
|
||||
bind_slot(rb_resize, attach, RTP_color, GL_COLOR_ATTACHMENT0_EXT);
|
||||
int next = GL_COLOR_ATTACHMENT1_EXT;
|
||||
@ -493,10 +493,7 @@ bind_slot(bool rb_resize, Texture **attach, RenderTexturePlane slot, GLenum atta
|
||||
GL_RENDERBUFFER_EXT, rb);
|
||||
}
|
||||
} else {
|
||||
GLenum internal_format;
|
||||
|
||||
internal_format = glgsg -> get_internal_image_format(tex);
|
||||
glgsg->_glRenderbufferStorage(GL_RENDERBUFFER_EXT, internal_format,
|
||||
glgsg->_glRenderbufferStorage(GL_RENDERBUFFER_EXT, GL_RGBA8_EXT,
|
||||
_rb_size_x, _rb_size_y);
|
||||
glgsg->_glBindRenderbuffer(GL_RENDERBUFFER_EXT, 0);
|
||||
glgsg->_glFramebufferRenderbuffer(GL_FRAMEBUFFER_EXT, attachpoint,
|
||||
|
@ -242,9 +242,8 @@ make_output(const string &name,
|
||||
// Second thing to try: a GLGraphicsBuffer
|
||||
|
||||
if (retry == 1) {
|
||||
if ((!support_rtt)||
|
||||
if ((host==0)||
|
||||
// (!gl_support_fbo)||
|
||||
(host==0)||
|
||||
((flags&BF_require_parasite)!=0)||
|
||||
((flags&BF_require_window)!=0)) {
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user