Commit a0aa5fde by Nicolas Capens Committed by Nicolas Capens

Fix Ozone compilation.

Change-Id: I03a369139b733a75a7790e65afc514b929e32090 Reviewed-on: https://swiftshader-review.googlesource.com/14468Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent ff5e6f60
...@@ -19,8 +19,8 @@ namespace sw ...@@ -19,8 +19,8 @@ namespace sw
FrameBufferOzone::FrameBufferOzone(intptr_t display, intptr_t window, int width, int height) : FrameBuffer(width, height, false, false) FrameBufferOzone::FrameBufferOzone(intptr_t display, intptr_t window, int width, int height) : FrameBuffer(width, height, false, false)
{ {
buffer = sw::Surface::create(width, height, 1, format, nullptr, buffer = sw::Surface::create(width, height, 1, format, nullptr,
sw::Surface::pitchB(width, format, true), sw::Surface::pitchB(width, 0, format, true),
sw::Surface::sliceB(width, height, format, true)); sw::Surface::sliceB(width, height, 0, format, true));
} }
FrameBufferOzone::~FrameBufferOzone() FrameBufferOzone::~FrameBufferOzone()
......
...@@ -324,6 +324,7 @@ ...@@ -324,6 +324,7 @@
<ClCompile Include="..\Common\Socket.cpp" /> <ClCompile Include="..\Common\Socket.cpp" />
<ClCompile Include="..\Common\Thread.cpp" /> <ClCompile Include="..\Common\Thread.cpp" />
<ClCompile Include="..\Main\Config.cpp" /> <ClCompile Include="..\Main\Config.cpp" />
<ClCompile Include="..\Main\FrameBufferOzone.cpp" />
<ClCompile Include="..\Main\FrameBufferWin.cpp" /> <ClCompile Include="..\Main\FrameBufferWin.cpp" />
<ClCompile Include="..\Renderer\ETC_Decoder.cpp" /> <ClCompile Include="..\Renderer\ETC_Decoder.cpp" />
<ClCompile Include="..\Shader\Constants.cpp" /> <ClCompile Include="..\Shader\Constants.cpp" />
......
...@@ -173,6 +173,9 @@ ...@@ -173,6 +173,9 @@
<ClCompile Include="..\Renderer\ETC_Decoder.cpp"> <ClCompile Include="..\Renderer\ETC_Decoder.cpp">
<Filter>Source Files\Renderer</Filter> <Filter>Source Files\Renderer</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\Main\FrameBufferOzone.cpp">
<Filter>Source Files\Main</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="..\Shader\Constants.hpp"> <ClInclude Include="..\Shader\Constants.hpp">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment