mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
gallium/draw: Fix enum type taken by draw_get_shader_param().
Pointed out by clang:
src/gallium/auxiliary/draw/draw_context.h:251:41: warning: implicit conversion
from enumeration type 'enum pipe_cap' to different enumeration type
'enum pipe_shader_cap' [-Wconversion]
return tgsi_exec_get_shader_param(param);
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~
This commit is contained in:
parent
5ba2e7adf0
commit
5829332a9b
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ boolean draw_need_pipeline(const struct draw_context *draw,
|
|||
unsigned prim );
|
||||
|
||||
static INLINE int
|
||||
draw_get_shader_param(unsigned shader, enum pipe_cap param)
|
||||
draw_get_shader_param(unsigned shader, enum pipe_shader_cap param)
|
||||
{
|
||||
switch(shader) {
|
||||
case PIPE_SHADER_VERTEX:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue