Skip to content

Commit

Permalink
xrRender_R1: request max active FFP lights from device capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed May 1, 2023
1 parent 0cfabfe commit fcafdeb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Layers/xrRender/HWCaps.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class CHWCaps
u16 raster_minor;
pcstr raster_profile;
caps_Raster raster;
u32 max_ffp_lights;

u32 id_vendor;
u32 id_device;
Expand Down
3 changes: 3 additions & 0 deletions src/Layers/xrRenderDX11/dx11HWCaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ void CHWCaps::Update()
soDec = D3DSTENCILOP_DECRSAT;
dwMaxStencilValue = (1 << 8) - 1;

// FFP lights
max_ffp_lights = 0;

// DEV INFO

iGPUNum = GetGpuNum();
Expand Down
3 changes: 3 additions & 0 deletions src/Layers/xrRenderDX9/dx9HWCaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ void CHWCaps::Update()
dwMaxStencilValue = (1 << 8) - 1;
}

// FFP lights
max_ffp_lights = caps.MaxActiveLights;

// DEV INFO

iGPUNum = GetGpuNum();
Expand Down
3 changes: 3 additions & 0 deletions src/Layers/xrRenderGL/glHWCaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ void CHWCaps::Update()
soDec = D3DSTENCILOP_DECRSAT;
dwMaxStencilValue = (1 << 8) - 1;

// FFP lights
max_ffp_lights = 0;

// DEV INFO

iGPUNum = GetGpuNum();
Expand Down

1 comment on commit fcafdeb

@Xottab-DUTY
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.