Questions tagged [openglcontext]

An OpenGL context represents all of the state associated with an instance of OpenGL. Use this tag for questions about context creation, and use.

An OpenGL context represents all of the state associated with an instance of OpenGL. OpenGL functions are executed within the current context, and modify only the current context.

Reference

See the main help page at https://www.opengl.org/wiki/OpenGL_Context

See Also

Related tags are:

81 questions
1
vote
0 answers

Get HGLRC from QQuickView in qml 5.3

How can I get HGLRC from QQuickView in qml 5.3 application? I have a program on openGL in windows which I want render to my QQuickView. The problem is that I don't want to touch render process in openGL rendering process. So, first I want create…
Kirill
  • 21
  • 1
1
vote
1 answer

Displaying ads above GLSurfaceView in Cocos2d-x on Android

After showing + closing an ad from Mopub in a Cocos2d-x 3.0 Android game, logcat shows these errors: E/libEGL (13772): call to OpenGL ES API with no current context (logged once per thread) W/Adreno-ES20(13772): :…
SundayMonday
  • 19,147
  • 29
  • 100
  • 154
1
vote
1 answer

OpenGL Viewer Control & Rendering Contexts

I have built an OpenGL Viewer control that can simply be dropped onto a windows form (at design time) and assigned an OpenGL display list (at run time). The viewer control handles navigation, display options (e.g. background color), etc. It is also…
JRS
  • 1,438
  • 2
  • 16
  • 26
1
vote
1 answer

context sharing in FreeGLUT under Linux with xorg

I am trying to use OpenGL with shared context (because of sharing textures between windows) via FreeGLUT library... It work fine, I can share textures, but i failed on the end of program or during windows closing by mouse... I have cerated the code…
1
vote
1 answer

How do I create an OpenGL 1.2 context in GLFW 3

I want to create OpenGL 1.2 context, but I get this error: "Failed to open GLFW window". When I create 3.3 or 4.3 context there is no problem. How can I create 1.2 context? glfwWindowHint(GLFW_SAMPLES, 4); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR,…
user3817833
  • 97
  • 1
  • 9
1
vote
1 answer

Deallocating OpenGL context created by QGLWidget

If I create a QGLWidget, and then I allocate my own textures using something like glGenTextures, glTex2DImage, etc, will all that texture data get cleaned up when I delete the widget? (Also, I will also have shared widgets which will get deleted…
Bobby Pardridge
  • 267
  • 6
  • 16
1
vote
1 answer

Creating a forward compatible OpenGL 3.x context in Python

I am using wxPython and I want to use an OpenGL based canvas, but I don't want the context to support deprecated functionality. I've navigated through pyopengl and pyglet in Eclipse, but it did not look like they support this. I'm saying this…
Derek E
  • 742
  • 1
  • 6
  • 13
1
vote
1 answer

Android library project: need to retrieve Resources without Context

First some background (I always like when people asking questions give that): I am writing a library project. It is a simple OpenGL 'graphics distortions' library. Users are supposed to be able to create certain objects called 'Regions' with a…
Utumno
  • 21
  • 3
1
vote
1 answer

wglCreateContextAttribsARB function crashes

I try to write down code from this tutorial. I have the code of InitializeOGL(): bool Ogl::InitializeOGL(bool vSync) { cout<<"Init OpenGL"<
CppMonster
  • 1,216
  • 4
  • 18
  • 35
1
vote
2 answers

wglCreateContext throws INVALID_OPERATION exception

suppose that I have COpenGLControl class downloaded here from codeguru assuming that the first event handler runned when creating the OpenGL window is OnCreate, I have tried to catch up the errors of this class. here's the code used to create the…
Sepideh Abadpour
  • 2,550
  • 10
  • 52
  • 88
1
vote
0 answers

QT shared opengl context

I want multiple QGLWidgets to share a single context, I am not able to get this to work after creating a QGLWidget, binding a texture using bindTexture() and create a second QGLWidget with the same format as the first one and using one of the…
Sundar Iyer
  • 59
  • 1
  • 4
1
vote
0 answers

OpenGL ES context loss with LibGDX

I am working on an app using LibGDX, and I am tackling some of the various issues that result from context loss when the user leaves the app and returns to it. In general, this is not much of a problem, but throughout the use of the app I…
Shamrock
  • 436
  • 1
  • 8
  • 17
1
vote
1 answer

Switching from an OpenGL context to a D3D/DX context (or another context) during Runtime

EDIT: IS there any pre-built libraries to do this for me, that either uses SDL OR runs on Window, Linux, Mac, iOS and Android? At the moment, I am not sure if the way I am changing contexts is quite a good design, I haven't completely finished it.…
miguel.martin
  • 1,626
  • 1
  • 12
  • 27
1
vote
4 answers

wglDeleteContext access violation

I work with a large solution in Visual C++ that uses MFC. Everything worked well before changes. When I just modified a dialog and added a new one. Program began to raise exception at close at the first line of: if (!wglDeleteContext(m_hRc)) …
user1260953
  • 35
  • 1
  • 4
1
vote
2 answers

Getting pixel colour not accurate

I'm currently using colour picking in my application. This works on the PC, however I'm having trouble to get it working on a variety of devices. This is probably due to the context being set up differently, depending on the device. For example, as…
Ben
  • 84
  • 1
  • 7