mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
e62759a3fa
Because Intel has wonderful code which forces it to run on the iGPU if
there are both an Intel iGPU and an Intel dGPU on the same system, the
adapter index OBS is set to internally will no longer be valid, thus if
anyone calls `obs_get_video_info()` to try to find out what adapter
index OBS is running on, it will be invalid on those computers.
Wonderful.
So, basically, this code here just fixe it so if you want to call
`obs_get_video_info()`, it'll actually have a valid adapter index now,
that way we can reference the adapter index when determining what GPU
we're actually running on without having to like, do anything super
complicated and silly like comparing adapter GUIDs just to figure out
what adapter OBS is actually runing on. I don't want the code to be a
mess anymore.
(I like how in any other situation on the face of the planet, there's no
need to force OBS to run on an integrated adapter. *Normally* OBS
*should* run on the dedicated adapter, that way it can actually capture
games properly. You can probably guess as to why they're forcing it to
run on the integrated adapter rather than the dedicated adapter. But you
know what? Whatever. I don't really care anymore I guess. Just...
whatever. Here we are I guess. Also I was in a bad mood while writing
this just as a disclaimer.)
(I hate that this commit exist. I hate that the commit
|
||
---|---|---|
.. | ||
CMakeLists.txt | ||
d3d11-config.h.in | ||
d3d11-duplicator.cpp | ||
d3d11-indexbuffer.cpp | ||
d3d11-rebuild.cpp | ||
d3d11-samplerstate.cpp | ||
d3d11-shader.cpp | ||
d3d11-shaderprocessor.cpp | ||
d3d11-shaderprocessor.hpp | ||
d3d11-stagesurf.cpp | ||
d3d11-subsystem.cpp | ||
d3d11-subsystem.hpp | ||
d3d11-texture2d.cpp | ||
d3d11-texture3d.cpp | ||
d3d11-vertexbuffer.cpp | ||
d3d11-zstencilbuffer.cpp |