1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-09 06:36:59 +02:00

XBOX fix mip generation for small textures, increase gamepads stick deadzone

This commit is contained in:
XProger
2020-10-14 07:45:40 +04:00
parent f0bc71af6d
commit 045ed9b63b
3 changed files with 6 additions and 6 deletions

View File

@@ -249,6 +249,10 @@ namespace GAPI {
void init(void *data) {
ASSERT((opt & OPT_PROXY) == 0);
if (origWidth < 8 || origHeight < 8) {
opt &= ~OPT_MIPMAPS;
}
bool isDepth = fmt == FMT_DEPTH || fmt == FMT_SHADOW;
bool mipmaps = (opt & OPT_MIPMAPS) != 0;
bool cube = (opt & OPT_CUBEMAP) != 0;
@@ -271,10 +275,6 @@ namespace GAPI {
FormatDesc desc = formats[fmt];
if (isTarget) {
}
uint32 usage = 0;
if (isDepth) usage |= D3DUSAGE_DEPTHSTENCIL;
if (isTarget) usage |= D3DUSAGE_RENDERTARGET;

View File

@@ -7,7 +7,7 @@
#define MAX_PLAYERS COUNT(Core::settings.controls)
#define INPUT_JOY_COUNT 4
#define INPUT_JOY_DZ_STICK 0.2f
#define INPUT_JOY_DZ_STICK 0.3f
#define INPUT_JOY_DZ_TRIGGER 0.01f
namespace Input {

View File

@@ -316,7 +316,7 @@ void main()
Core::defLang = checkLanguage();
Game::init("PSXDATA\\LEVEL1.PSX"); // (char*)NULL);
Game::init((char*)NULL);//"PSXDATA\\LEVEL1.PSX");
while (!Core::isQuit) {
joyUpdate();