Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devel #3254

Merged
merged 3 commits into from
Nov 9, 2024
Merged

Devel #3254

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,6 @@ if (MINGW)
# the atomic primitives
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i686")
endif ()
# disable this optimisation because it breaks release builds (reason unknown)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-tree-slp-vectorize")
# Ignore some really annoying warnings which also happen in dependencies
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=cast-qual -Wno-unused-local-typedefs")
endif ()

include(GenerateExportHeader)
Expand Down
2 changes: 1 addition & 1 deletion RenderSystems/Direct3D11/src/OgreD3D11HLSLProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ namespace Ogre {
mEntryPoint.c_str(), // [in] Name of the shader-entrypoint function where shader execution begins.
target, // [in] A string that specifies the shader model; can be any profile in shader model 4 or higher.
compileFlags, // [in] Effect compile flags - no D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY at the first try...
NULL, // [in] Effect compile flags
0, // [in] Effect compile flags
pMicroCode.GetAddressOf(),// [out] A pointer to an ID3DBlob Interface which contains the compiled shader, as well as any embedded debug and symbol-table information.
errors.GetAddressOf() // [out] A pointer to an ID3DBlob Interface which contains a listing of errors and warnings that occurred during compilation. These errors and warnings are identical to the the debug output from a debugger.
);
Expand Down
2 changes: 1 addition & 1 deletion RenderSystems/Direct3D11/src/OgreD3D11RenderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2518,7 +2518,7 @@ namespace Ogre
{ 4, 0 }, // MSAA 4x
{ 2, 0 }, // MSAA 2x
{ 1, 0 }, // MSAA 1x
{ NULL },
{ 0 },
};

// Find matching AA mode
Expand Down
4 changes: 2 additions & 2 deletions RenderSystems/Direct3D11/src/OgreD3D11RenderWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ namespace Ogre

_createSwapChain();
_createSizeDependedD3DResources();
mDevice.GetDXGIFactory()->MakeWindowAssociation(mHWnd, NULL);
mDevice.GetDXGIFactory()->MakeWindowAssociation(mHWnd, 0);
setHidden(mHidden);

D3D11RenderSystem* rsys = static_cast<D3D11RenderSystem*>(Root::getSingleton().getRenderSystem());
Expand All @@ -834,7 +834,7 @@ namespace Ogre
void D3D11RenderWindowHwnd::notifyDeviceRestored(D3D11Device* device)
{
D3D11RenderWindowSwapChainBased::notifyDeviceRestored(device);
mDevice.GetDXGIFactory()->MakeWindowAssociation(mHWnd, NULL);
mDevice.GetDXGIFactory()->MakeWindowAssociation(mHWnd, 0);
}
//---------------------------------------------------------------------
HRESULT D3D11RenderWindowHwnd::_createSwapChainImpl(IDXGIDeviceN* pDXGIDevice)
Expand Down
2 changes: 1 addition & 1 deletion RenderSystems/Direct3D9/src/OgreD3D9GpuProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ namespace Ogre {
// find & load source code
DataStreamPtr stream =
ResourceGroupManager::getSingleton().openResource(
mFilename, mGroup, true, this);
mFilename, mGroup, this);
mSource = stream->getAsString();
}

Expand Down