Removed needless externs
This commit is contained in:
parent
698719d5ad
commit
d748d3d4f2
|
@ -58,10 +58,6 @@ UINT g_InlineVertexBuffer_DataSize = 0;
|
||||||
// Copy of active Xbox D3D Vertex Streams (and strides), set by [D3DDevice|CxbxImpl]_SetStreamSource*
|
// Copy of active Xbox D3D Vertex Streams (and strides), set by [D3DDevice|CxbxImpl]_SetStreamSource*
|
||||||
xbox::X_STREAMINPUT g_Xbox_SetStreamSource[X_VSH_MAX_STREAMS] = { 0 }; // Note : .Offset member is never set (so always 0)
|
xbox::X_STREAMINPUT g_Xbox_SetStreamSource[X_VSH_MAX_STREAMS] = { 0 }; // Note : .Offset member is never set (so always 0)
|
||||||
|
|
||||||
extern xbox::X_D3DSurface* g_pXbox_RenderTarget;
|
|
||||||
extern xbox::X_D3DSurface* g_pXbox_BackBufferSurface;
|
|
||||||
extern xbox::X_D3DMULTISAMPLE_TYPE g_Xbox_MultiSampleType;
|
|
||||||
|
|
||||||
extern float *HLE_get_NV2A_vertex_attribute_value_pointer(unsigned VertexSlot); // Declared in PushBuffer.cpp
|
extern float *HLE_get_NV2A_vertex_attribute_value_pointer(unsigned VertexSlot); // Declared in PushBuffer.cpp
|
||||||
|
|
||||||
void *GetDataFromXboxResource(xbox::X_D3DResource *pXboxResource);
|
void *GetDataFromXboxResource(xbox::X_D3DResource *pXboxResource);
|
||||||
|
|
|
@ -1193,9 +1193,6 @@ static void CxbxSetVertexShaderPassthroughProgram()
|
||||||
|
|
||||||
CxbxSetVertexShaderSlots(&XboxShaderBinaryPassthrough[0], 0, sizeof(XboxShaderBinaryPassthrough) / X_VSH_INSTRUCTION_SIZE_BYTES);
|
CxbxSetVertexShaderSlots(&XboxShaderBinaryPassthrough[0], 0, sizeof(XboxShaderBinaryPassthrough) / X_VSH_INSTRUCTION_SIZE_BYTES);
|
||||||
|
|
||||||
extern float g_ZScale; // TMP glue
|
|
||||||
extern float GetMultiSampleOffsetDelta(); // TMP glue
|
|
||||||
|
|
||||||
// Passthrough programs require scale and offset to be set in constants zero and one (both minus 96)
|
// Passthrough programs require scale and offset to be set in constants zero and one (both minus 96)
|
||||||
// (Note, these are different from GetMultiSampleOffsetAndScale / GetViewPortOffsetAndScale)
|
// (Note, these are different from GetMultiSampleOffsetAndScale / GetViewPortOffsetAndScale)
|
||||||
float scale[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
|
float scale[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
|
||||||
|
@ -1208,6 +1205,8 @@ static void CxbxSetVertexShaderPassthroughProgram()
|
||||||
|
|
||||||
float MultiSampleBias = 0.0f;
|
float MultiSampleBias = 0.0f;
|
||||||
if (XboxRenderStates.GetXboxRenderState(xbox::X_D3DRS_MULTISAMPLEANTIALIAS) > 0) {
|
if (XboxRenderStates.GetXboxRenderState(xbox::X_D3DRS_MULTISAMPLEANTIALIAS) > 0) {
|
||||||
|
extern float GetMultiSampleOffsetDelta(); // TMP glue
|
||||||
|
|
||||||
MultiSampleBias = GetMultiSampleOffsetDelta();
|
MultiSampleBias = GetMultiSampleOffsetDelta();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue