comparison OrthancStone/Sources/OpenGL/OpenGLTexture.cpp @ 2045:e5c812a36746 deep-learning

added support of WebGL2 in WebAssemblyOpenGLContext
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 05 Mar 2023 17:06:31 +0100
parents c9dadbe7c7b0
children 98b44468332e
comparison
equal deleted inserted replaced
2044:c9dadbe7c7b0 2045:e5c812a36746
40 { 40 {
41 if (!context_.IsContextLost()) 41 if (!context_.IsContextLost())
42 { 42 {
43 // Generate a texture object 43 // Generate a texture object
44 glGenTextures(1, &texture_); 44 glGenTextures(1, &texture_);
45 ORTHANC_OPENGL_CHECK("glGenTextures()");
46
45 if (texture_ == 0) 47 if (texture_ == 0)
46 { 48 {
47 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, 49 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError,
48 "Cannot create an OpenGL texture"); 50 "Cannot create an OpenGL texture");
49 } 51 }