mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 04:50:35 +01:00
mesa: Remove unnecessary FEATURE tests.
Remove all FEATURE tests in mesa/drivers/common/. They are not needed and the code looks better without them.
This commit is contained in:
parent
10ff2646a4
commit
9476efe77f
2 changed files with 0 additions and 18 deletions
|
|
@ -38,19 +38,11 @@
|
|||
#include "main/teximage.h"
|
||||
#include "main/texobj.h"
|
||||
#include "main/texstore.h"
|
||||
#if FEATURE_ARB_vertex_buffer_object
|
||||
#include "main/bufferobj.h"
|
||||
#endif
|
||||
#if FEATURE_EXT_framebuffer_object
|
||||
#include "main/fbobject.h"
|
||||
#include "main/texrender.h"
|
||||
#endif
|
||||
#if FEATURE_ARB_sync
|
||||
#include "main/syncobj.h"
|
||||
#endif
|
||||
#if FEATURE_EXT_transform_feedback
|
||||
#include "main/transformfeedback.h"
|
||||
#endif
|
||||
|
||||
#include "program/program.h"
|
||||
#include "tnl/tnl.h"
|
||||
|
|
@ -187,21 +179,15 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
|
|||
/* query objects */
|
||||
_mesa_init_query_object_functions(driver);
|
||||
|
||||
#if FEATURE_ARB_sync
|
||||
_mesa_init_sync_object_functions(driver);
|
||||
#endif
|
||||
|
||||
#if FEATURE_EXT_framebuffer_object
|
||||
driver->NewFramebuffer = _mesa_new_framebuffer;
|
||||
driver->NewRenderbuffer = _mesa_new_soft_renderbuffer;
|
||||
driver->RenderTexture = _mesa_render_texture;
|
||||
driver->FinishRenderTexture = _mesa_finish_render_texture;
|
||||
driver->FramebufferRenderbuffer = _mesa_framebuffer_renderbuffer;
|
||||
#endif
|
||||
|
||||
#if FEATURE_EXT_framebuffer_blit
|
||||
driver->BlitFramebuffer = _swrast_BlitFramebuffer;
|
||||
#endif
|
||||
|
||||
/* APPLE_vertex_array_object */
|
||||
driver->NewArrayObject = _mesa_new_array_object;
|
||||
|
|
@ -210,9 +196,7 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
|
|||
|
||||
_mesa_init_shader_object_functions(driver);
|
||||
|
||||
#if FEATURE_EXT_transform_feedback
|
||||
_mesa_init_transform_feedback_functions(driver);
|
||||
#endif
|
||||
|
||||
/* T&L stuff */
|
||||
driver->NeedValidate = GL_FALSE;
|
||||
|
|
|
|||
|
|
@ -2583,12 +2583,10 @@ copy_tex_image(GLcontext *ctx, GLuint dims, GLenum target, GLint level,
|
|||
/*
|
||||
* Prepare for new texture image size/data
|
||||
*/
|
||||
#if FEATURE_convolve
|
||||
if (_mesa_is_color_format(internalFormat)) {
|
||||
_mesa_adjust_image_for_convolution(ctx, 2,
|
||||
&postConvWidth, &postConvHeight);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (texImage->Data) {
|
||||
ctx->Driver.FreeTexImageData(ctx, texImage);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue