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:
@@ -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;
|
||||
|
@@ -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 {
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user