WIP: eevee-next-world-irradiance #108304
|
@ -378,7 +378,7 @@ void GPU_framebuffer_config_array(GPUFrameBuffer *gpu_fb,
|
|||
|
||||
void GPU_framebuffer_default_size(GPUFrameBuffer *gpu_fb, int width, int height)
|
||||
{
|
||||
unwrap(gpu_fb)->size_set(width, height);
|
||||
unwrap(gpu_fb)->default_size_set(width, height);
|
||||
}
|
||||
|
||||
/* ---------- Viewport & Scissor Region ----------- */
|
||||
|
|
|
@ -137,6 +137,7 @@ class FrameBuffer {
|
|||
void *userData);
|
||||
uint get_bits_per_pixel();
|
||||
|
||||
/* Sets the size after creation. */
|
||||
inline void size_set(int width, int height)
|
||||
{
|
||||
width_ = width;
|
||||
|
@ -144,6 +145,15 @@ class FrameBuffer {
|
|||
dirty_state_ = true;
|
||||
}
|
||||
|
||||
/* Sets the size for frame-buffer with no attachments. */
|
||||
inline void default_size_set(int width, int height)
|
||||
{
|
||||
width_ = width;
|
||||
height_ = height;
|
||||
dirty_attachments_ = true;
|
||||
dirty_state_ = true;
|
||||
}
|
||||
|
||||
inline void viewport_set(const int viewport[4])
|
||||
{
|
||||
if (!equals_v4v4_int(viewport_, viewport)) {
|
||||
|
|
Loading…
Reference in New Issue