mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +00:00
Deleted remains of obsolete multisampling in Cocoa backend
This commit is contained in:
parent
b7ec26335f
commit
3ba3149df3
1 changed files with 3 additions and 12 deletions
|
@ -233,7 +233,7 @@ namespace
|
||||||
class CocoaVideo : public IVideo
|
class CocoaVideo : public IVideo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit CocoaVideo(int multisample);
|
CocoaVideo();
|
||||||
|
|
||||||
virtual EDisplayType GetDisplayType() { return DISPLAY_Both; }
|
virtual EDisplayType GetDisplayType() { return DISPLAY_Both; }
|
||||||
virtual void SetWindowedScale(float scale);
|
virtual void SetWindowedScale(float scale);
|
||||||
|
@ -465,7 +465,7 @@ CocoaWindow* CreateCocoaWindow(const NSUInteger styleMask)
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
CocoaVideo::CocoaVideo(const int multisample)
|
CocoaVideo::CocoaVideo()
|
||||||
: m_window(CreateCocoaWindow(STYLE_MASK_WINDOWED))
|
: m_window(CreateCocoaWindow(STYLE_MASK_WINDOWED))
|
||||||
, m_width(-1)
|
, m_width(-1)
|
||||||
, m_height(-1)
|
, m_height(-1)
|
||||||
|
@ -492,15 +492,6 @@ CocoaVideo::CocoaVideo(const int multisample)
|
||||||
attributes[i++] = NSOpenGLPFAAllowOfflineRenderers;
|
attributes[i++] = NSOpenGLPFAAllowOfflineRenderers;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (multisample)
|
|
||||||
{
|
|
||||||
attributes[i++] = NSOpenGLPFAMultisample;
|
|
||||||
attributes[i++] = NSOpenGLPFASampleBuffers;
|
|
||||||
attributes[i++] = NSOpenGLPixelFormatAttribute(1);
|
|
||||||
attributes[i++] = NSOpenGLPFASamples;
|
|
||||||
attributes[i++] = NSOpenGLPixelFormatAttribute(multisample);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (NSAppKitVersionNumber >= AppKit10_7)
|
if (NSAppKitVersionNumber >= AppKit10_7)
|
||||||
{
|
{
|
||||||
attributes[i++] = NSOpenGLPFAOpenGLProfile;
|
attributes[i++] = NSOpenGLPFAOpenGLProfile;
|
||||||
|
@ -1260,7 +1251,7 @@ void I_InitGraphics()
|
||||||
val.Bool = !!Args->CheckParm("-devparm");
|
val.Bool = !!Args->CheckParm("-devparm");
|
||||||
ticker.SetGenericRepDefault(val, CVAR_Bool);
|
ticker.SetGenericRepDefault(val, CVAR_Bool);
|
||||||
|
|
||||||
Video = new CocoaVideo(0);
|
Video = new CocoaVideo;
|
||||||
atterm(I_ShutdownGraphics);
|
atterm(I_ShutdownGraphics);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue