Skip to content

Commit

Permalink
Added assest
Browse files Browse the repository at this point in the history
  • Loading branch information
matt77hias committed Mar 6, 2017
1 parent f7abf53 commit 0984363
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MAGE/FPS/src/core/FPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class TestScene : public Scene {
CombinedShader shader = CreateLambertianShader();

MeshDescriptor< VertexPositionNormalTexture > mesh_desc(true, true);
SharedPtr< ModelDescriptor > model_desc = CreateModelDescriptor(L"assets/models/teapot.obj", mesh_desc);
SharedPtr< ModelDescriptor > model_desc = CreateModelDescriptor(L"assets/models/cube.obj", mesh_desc);
SharedPtr< Model > test_model(new MeshModel("model", *model_desc, shader));
GetWorld().AddModel(test_model);

Expand Down
8 changes: 4 additions & 4 deletions MAGE/MAGE/src/texture/dds/dds_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ static HRESULT CreateD3DResources(_In_ const RenderingDevice &device,
desc.MiscFlags = misc_flags & ~D3D11_RESOURCE_MISC_TEXTURECUBE;
}

ID3D11Texture2D* tex = nullptr;
ID3D11Texture2D *tex = nullptr;
hr = device.CreateTexture2D(&desc, init_data, &tex);
if (SUCCEEDED(hr) && tex != 0) {
if (texture_view != 0) {
Expand Down Expand Up @@ -764,7 +764,7 @@ static HRESULT CreateD3DResources(_In_ const RenderingDevice &device,
desc.CPUAccessFlags = cpu_access_flags;
desc.MiscFlags = misc_flags & ~D3D11_RESOURCE_MISC_TEXTURECUBE;

ID3D11Texture3D* tex = nullptr;
ID3D11Texture3D *tex = nullptr;
hr = device.CreateTexture3D(&desc, init_data, &tex);
if (SUCCEEDED(hr) && tex != 0) {
if (texture_view != 0) {
Expand Down Expand Up @@ -799,7 +799,7 @@ static HRESULT CreateD3DResources(_In_ const RenderingDevice &device,

static HRESULT CreateTextureFromDDS(_In_ const RenderingDevice &device,
_In_opt_ ID3D11DeviceContext *d3dContext,
_In_ const DDS_HEADER* header,
_In_ const DDS_HEADER *header,
_In_reads_bytes_(bit_size) const uint8_t *bit_data,
_In_ size_t bit_size,
_In_ size_t maxsize,
Expand Down Expand Up @@ -966,7 +966,7 @@ static HRESULT CreateTextureFromDDS(_In_ const RenderingDevice &device,

if (autogen) {
// Create texture with auto-generated mipmaps
ID3D11Resource* tex = nullptr;
ID3D11Resource *tex = nullptr;
hr = CreateD3DResources(device, res_dim, width, height, depth, 0, array_size,
format, usage,
bindFlags | D3D11_BIND_RENDER_TARGET,
Expand Down

0 comments on commit 0984363

Please sign in to comment.