aboutsummaryrefslogtreecommitdiffstats
path: root/Samples/CommonSrc/Render/Render_LoadTextureDDS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/CommonSrc/Render/Render_LoadTextureDDS.cpp')
-rw-r--r--Samples/CommonSrc/Render/Render_LoadTextureDDS.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Samples/CommonSrc/Render/Render_LoadTextureDDS.cpp b/Samples/CommonSrc/Render/Render_LoadTextureDDS.cpp
index b2b4b31..5bbdb21 100644
--- a/Samples/CommonSrc/Render/Render_LoadTextureDDS.cpp
+++ b/Samples/CommonSrc/Render/Render_LoadTextureDDS.cpp
@@ -5,7 +5,7 @@ Content : A DDS file loader for cross-platform compressed texture support.
Created : March 5, 2013
Authors : Peter Hoff, Dan Goodman, Bryan Croteau
-Copyright : Copyright 2013 Oculus VR, Inc. All Rights reserved.
+Copyright : Copyright 2012 Oculus VR, Inc. All Rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -75,10 +75,10 @@ Texture* LoadTextureDDS(RenderDevice* ren, File* f)
f->Read((unsigned char*)(&header), sizeof(header));
- int width = header.Width;
+ int width = header.Width;
int height = header.Height;
- int format = 0;
+ int format = Texture_RGBA;
UInt32 mipCount = header.MipMapCount;
if(mipCount <= 0)