Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/glxbackend.cpp
Show First 20 Lines • Show All 328 Lines • ▼ Show 20 Line(s) | 299 | if (hasExtension(QByteArrayLiteral("GLX_ARB_create_context"))) { | |||
---|---|---|---|---|---|
329 | 329 | | |||
330 | const int attribs_legacy_robustness[] = { | 330 | const int attribs_legacy_robustness[] = { | ||
331 | GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB, | 331 | GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB, | ||
332 | GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, GLX_LOSE_CONTEXT_ON_RESET_ARB, | 332 | GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB, GLX_LOSE_CONTEXT_ON_RESET_ARB, | ||
333 | 0 | 333 | 0 | ||
334 | }; | 334 | }; | ||
335 | 335 | | |||
336 | const int attribs_legacy[] = { | 336 | const int attribs_legacy[] = { | ||
337 | GLX_CONTEXT_MAJOR_VERSION_ARB, 1, | 337 | GLX_CONTEXT_MAJOR_VERSION_ARB, 2, | ||
338 | GLX_CONTEXT_MINOR_VERSION_ARB, 2, | 338 | GLX_CONTEXT_MINOR_VERSION_ARB, 1, | ||
339 | 0 | 339 | 0 | ||
340 | }; | 340 | }; | ||
341 | 341 | | |||
342 | const bool have_robustness = hasExtension(QByteArrayLiteral("GLX_ARB_create_context_robustness")); | 342 | const bool have_robustness = hasExtension(QByteArrayLiteral("GLX_ARB_create_context_robustness")); | ||
343 | const bool haveVideoMemoryPurge = hasExtension(QByteArrayLiteral("GLX_NV_robustness_video_memory_purge")); | 343 | const bool haveVideoMemoryPurge = hasExtension(QByteArrayLiteral("GLX_NV_robustness_video_memory_purge")); | ||
344 | 344 | | |||
345 | // Try to create a 3.1 context first | 345 | // Try to create a 3.1 context first | ||
346 | if (options->glCoreProfile()) { | 346 | if (options->glCoreProfile()) { | ||
▲ Show 20 Lines • Show All 607 Lines • Show Last 20 Lines |