Luckily there are libraries out there that abstract this process, so that you can maintain the same codebase for all supported platforms. That means it is done differently on every platform out there! Developing applications using OpenGL is all about being portable, so this is the last thing we need. The problem is that creating a window and an OpenGL context is not part of the OpenGL specification. When your application closes, the OpenGL context is destroyed and everything is cleaned up. This is done by creating an OpenGL context, which is essentially a state machine that stores all data related to the rendering of your application. Requested format: QSurfaceFormat(version 3.Before you can start drawing things, you need to initialize OpenGL. Working computer: Shading language: "4.60 NVIDIA" The difference between my 2 computer is the graphic card Use RightMiddleTabletButton Workaround: false Renderer: "GeForce GTX 1060 3GB/PCIe/SSE2"Ĭurrent format: QSurfaceFormat(version 4.6, options QFlags(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::CompatibilityProfile) Here is the configuration Version: 4.4.2-beta1 Python 3.8.1: C:\Program Files\Krita (圆4)\bin\krita.exeĬ:\Program Files\Krita (圆4)\ in resizeGL(self=, width=640, height=480)ĪttributeError: 'NoneType' object has no attribute 'glViewport'Īrgs = ("'NoneType' object has no attribute 'glViewport'",)īut if I hit Close then I get this after and a window behind in all black AttributeErrorĬ:\Program Files\Krita (圆4)\ in paintGL(self=) I am on W10 and I got a different message it seems. Requested format: QSurfaceFormat(version 3.0, options QFlags(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::CompatibilityProfile)Ĭurrent format: QSurfaceFormat(version 3.0, options QFlags(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) Renderer: "Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) " Vendor: "Intel Open Source Technology Center" Pretty Productname: Debian GNU/Linux 10 (buster) QOpenGLShaderProgram::uniformLocation(iTime): shader program is not linked In (linux) console, I have this additional message: QOpenGLShader::link: error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader The above is a description of an error in a Python program. home/grum/Applications/Images/Krita/ in paintGL(self=)ĪttributeError: 'NoneType' object has no attribute 'glDrawArrays'Īrgs = ("'NoneType' object has no attribute 'glDrawArrays'",) Here is the sequence ofįunction calls leading up to the error, in the order they occurred. On my side, I got this error: AttributeErrorĪ problem occurred in a Python script. Gl.glDrawArrays(gl.GL_TRIANGLE_STRIP, 0, 4) Self._tUniformValue("iTime", self._iTime) Self._prog = QOpenGLShaderProgram(context) Vert = QOpenGLShader(QOpenGLShader.Vertex)įrag = QOpenGLShader(QOpenGLShader.Fragment) Self._gl = context.versionFunctions(profile) Wave_color = vec3(wave_width * 1.9, wave_width, wave_width * 1.5) from PyQt5.QtCore import QTimerįrom PyQt5.QtWidgets import QOpenGLWidget So… it would be nice if you could copy
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |