mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
restore behavior insisting on 640x480x16 mode for low-mem cards
This commit is contained in:
parent
f7934d63c9
commit
d652035d81
@ -58,3 +58,8 @@ int gl_force_pixfmt = config_wgldisplay.GetInt("gl-force-pixfmt", 0);
|
||||
// Set this true to force all GL windows to fail to open correctly.
|
||||
bool gl_force_invalid = config_wgldisplay.GetBool("gl-force-invalid", false);
|
||||
|
||||
// This is true to insist that low-memory cards open only 640x480
|
||||
// fullscreen windows, no matter what resolution of window was
|
||||
// requested. It only affects fullscreen windows.
|
||||
bool gl_do_vidmemsize_check = config_wgldisplay.GetBool("gl-do-vidmemsize-check", true);
|
||||
|
||||
|
@ -28,5 +28,6 @@ extern EXPCL_PANDAGL void init_libwgldisplay();
|
||||
|
||||
extern int gl_force_pixfmt;
|
||||
extern bool gl_force_invalid;
|
||||
extern bool gl_do_vidmemsize_check;
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -39,8 +39,10 @@ public:
|
||||
virtual void begin_flip();
|
||||
|
||||
protected:
|
||||
virtual bool open_window();
|
||||
virtual void close_window();
|
||||
virtual bool open_window();
|
||||
virtual void reconsider_fullscreen_size(DWORD &x_size, DWORD &y_size,
|
||||
DWORD &bitdepth);
|
||||
|
||||
private:
|
||||
int choose_pfnum() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user