Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraphiX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sip
GraphiX
Compare revisions
add3e15819b5824a63a038386e9c8049b5b674e2 to ba53de8d7bdd800a61385ab1ac05533e2b9c7224
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
sip/graphix
Select target project
No results found
ba53de8d7bdd800a61385ab1ac05533e2b9c7224
Select Git revision
Branches
NvAPI
master
2 results
Swap
Target
sip/graphix
Select target project
sip/graphix
1 result
add3e15819b5824a63a038386e9c8049b5b674e2
Select Git revision
Loading items
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source
1
Fixed initialization bug with pre-dx11.1 hardware
· ba53de8d
D-AIRY
authored
Mar 4, 2020
ba53de8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/dx11/GXDevice.cpp
+22
-12
22 additions, 12 deletions
source/dx11/GXDevice.cpp
with
22 additions
and
12 deletions
source/dx11/GXDevice.cpp
View file @
ba53de8d
...
...
@@ -201,9 +201,17 @@ BOOL CGXDevice::initContext(SXWINDOW wnd, int iWidth, int iHeight, bool isWindow
#if defined(_DEBUG)
creationFlags
|=
D3D11_CREATE_DEVICE_DEBUG
;
#endif
log
(
GX_LOG_INFO
,
"Initializing %s context
\n
"
,
(
creationFlags
&
D3D11_CREATE_DEVICE_DEBUG
)
?
"debug"
:
"release"
);
D3D_FEATURE_LEVEL
featureLevels111
[]
=
{
D3D_FEATURE_LEVEL_11_1
};
if
(
FAILED
(
DX_CALL
(
D3D11CreateDevice
(
NULL
,
D3D_DRIVER_TYPE_HARDWARE
,
NULL
,
0
,
featureLevels111
,
ARRAYSIZE
(
featureLevels111
),
D3D11_SDK_VERSION
,
&
m_pDevice
,
nullptr
,
&
m_pDeviceContext
))))
{
log
(
GX_LOG_INFO
,
"Unable to use DirectX11.1! Falling back to previous version
\n
"
);
D3D_FEATURE_LEVEL
featureLevels
[]
=
{
D3D_FEATURE_LEVEL_11_1
,
D3D_FEATURE_LEVEL_11_0
,
D3D_FEATURE_LEVEL_10_1
,
D3D_FEATURE_LEVEL_10_0
,
...
...
@@ -216,6 +224,8 @@ BOOL CGXDevice::initContext(SXWINDOW wnd, int iWidth, int iHeight, bool isWindow
{
return
(
FALSE
);
}
}
if
(
FAILED
(
DX_CALL
(
m_pDevice
->
QueryInterface
(
__uuidof
(
IDXGIDevice
),
(
void
**
)
&
m_pDXGIDevice
))))
{
...
...
This diff is collapsed.
Click to expand it.