mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 16:48:07 +02:00
dri/radeon: test for FEATURE defines
'struct dd_function_table' only conditionally contains the function pointer NewFramebuffer and friends based on FEATURE_EXT_framebuffer_* defines. (See src/mesa/main/dd.h) Fixes the build when the features are disabled and the vfuncs don't exist.
This commit is contained in:
parent
3261c6c41e
commit
234a065171
1 changed files with 4 additions and 0 deletions
|
|
@ -609,6 +609,7 @@ radeon_validate_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb)
|
|||
|
||||
void radeon_fbo_init(struct radeon_context *radeon)
|
||||
{
|
||||
#if FEATURE_EXT_framebuffer_object
|
||||
radeon->glCtx->Driver.NewFramebuffer = radeon_new_framebuffer;
|
||||
radeon->glCtx->Driver.NewRenderbuffer = radeon_new_renderbuffer;
|
||||
radeon->glCtx->Driver.BindFramebuffer = radeon_bind_framebuffer;
|
||||
|
|
@ -617,7 +618,10 @@ void radeon_fbo_init(struct radeon_context *radeon)
|
|||
radeon->glCtx->Driver.FinishRenderTexture = radeon_finish_render_texture;
|
||||
radeon->glCtx->Driver.ResizeBuffers = radeon_resize_buffers;
|
||||
radeon->glCtx->Driver.ValidateFramebuffer = radeon_validate_framebuffer;
|
||||
#endif
|
||||
#if FEATURE_EXT_framebuffer_blit
|
||||
radeon->glCtx->Driver.BlitFramebuffer = _mesa_meta_BlitFramebuffer;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue