Skip to content

Commit 9f41ddc

Browse files
committed
Comment out some strange and unused code.
1 parent 409733a commit 9f41ddc

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/utils/xrDXT/DXT.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
#include "dxtlib.h"
33
#include <nvtt/nvtt.h>
44
#include "ETextureParams.h"
5-
#include "dds.h"
5+
//#include "dds.h"
66

7-
BOOL APIENTRY DllMain(HANDLE hModule, u32 ul_reason_for_call, LPVOID lpReserved) { return TRUE; }
7+
//BOOL APIENTRY DllMain(HANDLE hModule, u32 ul_reason_for_call, LPVOID lpReserved) { return TRUE; }
88
static HFILE gFileOut;
99
static HFILE gFileIn;
1010

11-
const u32 fcc_DXT1 = MAKEFOURCC('D', 'X', 'T', '1');
11+
/*const u32 fcc_DXT1 = MAKEFOURCC('D', 'X', 'T', '1');
1212
const u32 fcc_DXT2 = MAKEFOURCC('D', 'X', 'T', '2');
1313
const u32 fcc_DXT3 = MAKEFOURCC('D', 'X', 'T', '3');
1414
const u32 fcc_DXT4 = MAKEFOURCC('D', 'X', 'T', '4');
15-
const u32 fcc_DXT5 = MAKEFOURCC('D', 'X', 'T', '5');
15+
const u32 fcc_DXT5 = MAKEFOURCC('D', 'X', 'T', '5');*/
1616

17-
void __cdecl WriteDTXnFile(DWORD count, void* buffer, void* userData)
17+
/*void __cdecl WriteDTXnFile(DWORD count, void* buffer, void* userData)
1818
{
1919
if (count == sizeof(DDS_HEADER))
2020
{
@@ -32,7 +32,7 @@ void __cdecl WriteDTXnFile(DWORD count, void* buffer, void* userData)
3232
}
3333
}
3434
_write(gFileOut, buffer, count);
35-
}
35+
}*/
3636

3737
class DDSWriter : public nvtt::OutputHandler
3838
{
@@ -48,7 +48,7 @@ DDSWriter::DDSWriter(HFILE& file) : file(file) {}
4848
void DDSWriter::beginImage(int size, int width, int height, int depth, int face, int miplevel) {}
4949
bool DDSWriter::writeData(const void* data, int size)
5050
{
51-
if (size == sizeof(DDS_HEADER))
51+
/*if (size == sizeof(DDS_HEADER))
5252
{
5353
DDS_HEADER* hdr = (DDS_HEADER*)data;
5454
if (hdr->dwSize == size)
@@ -62,7 +62,7 @@ bool DDSWriter::writeData(const void* data, int size)
6262
case fcc_DXT5: hdr->ddspf.dwRGBBitCount = 0; break;
6363
}
6464
}
65-
}
65+
}*/
6666
_write(file, data, size);
6767
return true;
6868
}
@@ -89,15 +89,15 @@ void DDSErrorHandler::error(nvtt::Error e)
8989
MessageBox(0, msg, "DXT compress error", MB_ICONERROR | MB_OK);
9090
}
9191

92-
void __cdecl ReadDTXnFile(DWORD count, void* buffer, void* userData) { _read(gFileIn, buffer, count); }
92+
/*void __cdecl ReadDTXnFile(DWORD count, void* buffer, void* userData) { _read(gFileIn, buffer, count); }
9393
HRESULT WriteCompressedData(void* data, int miplevel, u32 size)
9494
{
9595
_write(gFileOut, data, size);
9696
FillMemory(data, size, 0xff);
9797
return 0;
98-
}
98+
}*/
9999

100-
ENGINE_API u32* Build32MipLevel(u32& _w, u32& _h, u32& _p, u32* pdwPixelSrc, STextureParams* fmt, float blend)
100+
/*ENGINE_API*/ u32* Build32MipLevel(u32& _w, u32& _h, u32& _p, u32* pdwPixelSrc, STextureParams* fmt, float blend)
101101
{
102102
R_ASSERT(pdwPixelSrc);
103103
R_ASSERT(_w % 2 == 0);

src/utils/xrDXT/StdAfx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

3-
#define ENGINE_API
4-
#define XR_EPROPS_API
3+
//#define ENGINE_API
4+
//#define XR_EPROPS_API
55
#define ECORE_API
66

77
#include "Common/Common.hpp"

0 commit comments

Comments
 (0)