Parcourir la source

gallium: Use stricter types.

VC++ won't silently convert a pointer to a function with typed pointer
arguments to one with void pointer arguments.
tags/mesa_20090313
José Fonseca il y a 17 ans
Parent
révision
8902ce06e8
1 fichiers modifiés avec 13 ajouts et 13 suppressions
  1. 13
    13
      src/gallium/auxiliary/cso_cache/cso_cache.h

+ 13
- 13
src/gallium/auxiliary/cso_cache/cso_cache.h Voir le fichier

@@ -88,44 +88,44 @@ struct cso_cache;

struct cso_blend {
struct pipe_blend_state state;
void *data;
void (*delete_state)(void *, void *);
void *context;
void *data;
void (*delete_state)(struct pipe_context *, void *);
struct pipe_context *context;
};

struct cso_depth_stencil_alpha {
struct pipe_depth_stencil_alpha_state state;
void *data;
void (*delete_state)(void *, void *);
void *context;
void (*delete_state)(struct pipe_context *, void *);
struct pipe_context *context;
};

struct cso_rasterizer {
struct pipe_rasterizer_state state;
void *data;
void (*delete_state)(void *, void *);
void *context;
void (*delete_state)(struct pipe_context *, void *);
struct pipe_context *context;
};

struct cso_fragment_shader {
struct pipe_shader_state state;
void *data;
void (*delete_state)(void *, void *);
void *context;
void (*delete_state)(struct pipe_context *, void *);
struct pipe_context *context;
};

struct cso_vertex_shader {
struct pipe_shader_state state;
void *data;
void (*delete_state)(void *, void *);
void *context;
void (*delete_state)(struct pipe_context *, void *);
struct pipe_context *context;
};

struct cso_sampler {
struct pipe_sampler_state state;
void *data;
void (*delete_state)(void *, void *);
void *context;
void (*delete_state)(struct pipe_context *, void *);
struct pipe_context *context;
};



Chargement…
Annuler
Enregistrer