Module: wine
Branch: master
Commit: 4a30ab299ae60f891ef7498245a97c4099dd337d
URL: https://gitlab.winehq.org/wine/wine/-/commit/4a30ab299ae60f891ef7498245a97c…
Author: Zebediah Figura <zfigura(a)codeweavers.com>
Date: Sat Oct 28 14:05:25 2023 -0500
wined3d: Rename state.c to ffp_gl.c.
Better reflect its contents.
There is still a small amount of code in this file not directly related to the
FFP:
- compile_state_table(), which should eventually go away;
- states like state_so() and indexbuffer(), which should eventually be moved to
context_gl.c with the rest of the resource loading/binding code.
---
dlls/wined3d/Makefile.in | 2 +-
dlls/wined3d/{state.c => ffp_gl.c} | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/Makefile.in b/dlls/wined3d/Makefile.in
index 35de4aec8da..9223ecd77c9 100644
--- a/dlls/wined3d/Makefile.in
+++ b/dlls/wined3d/Makefile.in
@@ -15,6 +15,7 @@ SOURCES = \
cs.c \
device.c \
directx.c \
+ ffp_gl.c \
gl_compat.c \
glsl_shader.c \
nvidia_texture_shader.c \
@@ -26,7 +27,6 @@ SOURCES = \
shader_sm1.c \
shader_sm4.c \
shader_spirv.c \
- state.c \
stateblock.c \
surface.c \
swapchain.c \
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/ffp_gl.c
similarity index 99%
rename from dlls/wined3d/state.c
rename to dlls/wined3d/ffp_gl.c
index 4183de6e638..de350241b05 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/ffp_gl.c
@@ -1,5 +1,5 @@
/*
- * Direct3D state management
+ * GL fixed-function pipeline
*
* Copyright 2002 Lionel Ulmer
* Copyright 2002-2005 Jason Edmeades
Module: wine
Branch: master
Commit: 7181ef4052c99a8ce294dbbedfb34c3daff6f102
URL: https://gitlab.winehq.org/wine/wine/-/commit/7181ef4052c99a8ce294dbbedfb34c…
Author: Zebediah Figura <zfigura(a)codeweavers.com>
Date: Sat Oct 28 14:01:10 2023 -0500
wined3d: Move state objects from state.c to device.c.
The entire rest of state.c is concerned with the GL fixed-function pipeline.
device.c seems the most fitting place for these, since they're associated with
the device and stored in the device. device.c is also one of the few files that
contains client-side code, which these functions are.
---
dlls/wined3d/device.c | 228 ++++++++++++++++++++++++++++++++++++++++++++++++++
dlls/wined3d/state.c | 226 -------------------------------------------------
2 files changed, 228 insertions(+), 226 deletions(-)