Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/opengl/gl_framebuffer.cc
| Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | case GL_FRAMEBUFFER_COMPLETE: | ||||
| return true; | return true; | ||||
| default: | default: | ||||
| err = "unknown"; | err = "unknown"; | ||||
| break; | break; | ||||
| } | } | ||||
| #undef FORMAT_STATUS | #undef FORMAT_STATUS | ||||
| const char *format = "GPUFrameBuffer: frame-buffer status %s\n"; | const char *format = "GPUFrameBuffer: %s status %s\n"; | ||||
| if (err_out) { | if (err_out) { | ||||
| BLI_snprintf(err_out, 256, format, err); | BLI_snprintf(err_out, 256, format, this->name_, err); | ||||
| } | } | ||||
| else { | else { | ||||
| fprintf(stderr, format, err); | fprintf(stderr, format, this->name_, err); | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| void GLFrameBuffer::update_attachments() | void GLFrameBuffer::update_attachments() | ||||
| { | { | ||||
| /* Default frame-buffers cannot have attachments. */ | /* Default frame-buffers cannot have attachments. */ | ||||
| ▲ Show 20 Lines • Show All 341 Lines • Show Last 20 Lines | |||||