wined3d: Fix some more 3 space indentation.
This commit is contained in:
parent
d12e489272
commit
375780a5a8
|
@ -2997,10 +2997,10 @@ static void pshader_glsl_input_pack(SHADER_BUFFER *buffer, const struct wined3d_
|
|||
IWineD3DPixelShader *iface, enum vertexprocessing_mode vertexprocessing)
|
||||
{
|
||||
unsigned int i;
|
||||
IWineD3DPixelShaderImpl *This = (IWineD3DPixelShaderImpl *) iface;
|
||||
|
||||
for (i = 0; i < MAX_REG_INPUT; i++) {
|
||||
IWineD3DPixelShaderImpl *This = (IWineD3DPixelShaderImpl *)iface;
|
||||
|
||||
for (i = 0; i < MAX_REG_INPUT; ++i)
|
||||
{
|
||||
DWORD usage_token = semantics_in[i].usage;
|
||||
DWORD usage, usage_idx;
|
||||
char reg_mask[6];
|
||||
|
@ -3011,16 +3011,15 @@ static void pshader_glsl_input_pack(SHADER_BUFFER *buffer, const struct wined3d_
|
|||
usage_idx = (usage_token & WINED3DSP_DCL_USAGEINDEX_MASK) >> WINED3DSP_DCL_USAGEINDEX_SHIFT;
|
||||
shader_glsl_get_write_mask(semantics_in[i].reg.token, reg_mask);
|
||||
|
||||
switch(usage) {
|
||||
|
||||
switch (usage)
|
||||
{
|
||||
case WINED3DDECLUSAGE_TEXCOORD:
|
||||
if(usage_idx < 8 && vertexprocessing == pretransformed) {
|
||||
if (usage_idx < 8 && vertexprocessing == pretransformed)
|
||||
shader_addline(buffer, "IN[%u]%s = gl_TexCoord[%u]%s;\n",
|
||||
This->input_reg_map[i], reg_mask, usage_idx, reg_mask);
|
||||
} else {
|
||||
else
|
||||
shader_addline(buffer, "IN[%u]%s = vec4(0.0, 0.0, 0.0, 0.0)%s;\n",
|
||||
This->input_reg_map[i], reg_mask, reg_mask);
|
||||
}
|
||||
break;
|
||||
|
||||
case WINED3DDECLUSAGE_COLOR:
|
||||
|
@ -3038,6 +3037,7 @@ static void pshader_glsl_input_pack(SHADER_BUFFER *buffer, const struct wined3d_
|
|||
default:
|
||||
shader_addline(buffer, "IN[%u]%s = vec4(0.0, 0.0, 0.0, 0.0)%s;\n",
|
||||
This->input_reg_map[i], reg_mask, reg_mask);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue