Here's the pointer to mActiveViewport, well Ogre Viewport for that rendering I suppose:
Notice the VIEWPORT HAS THE RIGHT AND BOTTOM VALUES TO 4096 !!!! SO why it is rendering 1920x1200 !!?
GLRenderSystemCommon:
Code: Select all
(gdb) p *this
$4 = {<Ogre::GLRenderSystemCommon> = {<Ogre::RenderSystem> = {<Ogre::AllocatedObject<0>> = {<No data fields>},
_vptr.RenderSystem = 0x7ffff45977c0 <vtable for Ogre::GL3PlusRenderSystem+16>, mDepthBufferPool = std::map with 1 element = {[1] = std::vector of length 5, capacity 8 = {0xfe7c60,
0x5fbe1d0, 0x5fbe150, 0xbceb440, 0x72a8a70}}, mRenderTargets = std::map with 3 elements = {["OpenDungeons 0.7.1"] = 0xd1f970, ["rtt/208354176/smokeTexture"] = 0xc5222f0,
["rtt/95407968/PerlinNoiseTexture"] = 0x7240f50}, mPrioritisedRenderTargets = std::multimap with 3 elements = {[2 '\002'] = 0xc5222f0, [2 '\002'] = 0x7240f50,
[4 '\004'] = 0xd1f970}, mActiveRenderTarget = 0x7240f50,
mActiveVertexGpuProgramParameters = {<std::shared_ptr<Ogre::GpuProgramParameters>> = std::shared_ptr<Ogre::GpuProgramParameters> (use count 2, weak count 0) = {
get() = 0x1a5ffe0}, <No data fields>},
mActiveGeometryGpuProgramParameters = {<std::shared_ptr<Ogre::GpuProgramParameters>> = std::shared_ptr<Ogre::GpuProgramParameters> (empty) = {get() = 0x0}, <No data fields>},
mActiveFragmentGpuProgramParameters = {<std::shared_ptr<Ogre::GpuProgramParameters>> = std::shared_ptr<Ogre::GpuProgramParameters> (use count 2, weak count 0) = {
get() = 0x1abbfd0}, <No data fields>},
mActiveTessellationHullGpuProgramParameters = {<std::shared_ptr<Ogre::GpuProgramParameters>> = std::shared_ptr<Ogre::GpuProgramParameters> (empty) = {get() = 0x0}, <No data fields>},
mActiveTessellationDomainGpuProgramParameters = {<std::shared_ptr<Ogre::GpuProgramParameters>> = std::shared_ptr<Ogre::GpuProgramParameters> (empty) = {
get() = 0x0}, <No data fields>}, mActiveComputeGpuProgramParameters = {<std::shared_ptr<Ogre::GpuProgramParameters>> = std::shared_ptr<Ogre::GpuProgramParameters> (empty) = {
get() = 0x0}, <No data fields>}, mTextureManager = 0xce7c60, mActiveViewport = 0x721e0e0, mCullingMode = Ogre::CULL_CLOCKWISE, mBatchCount = 0, mFaceCount = 0, mVertexCount = 0,
mManualBlendColours = {{{r = 1, g = 1, b = 1, a = 1}, {r = 1, g = 1, b = 1, a = 1}} <repeats 16 times>}, mInvertVertexWinding = false, mIsReverseDepthBufferEnabled = false,
mDisabledTexUnitsFrom = 0, mCurrentPassIterationCount = 1, mCurrentPassIterationNum = 0, mDerivedDepthBias = false, mDerivedDepthBiasBase = 0, mDerivedDepthBiasMultiplier = 0,
mDerivedDepthBiasSlopeScale = 0, mGlobalInstanceVertexBuffer = {<std::shared_ptr<Ogre::HardwareVertexBuffer>> = std::shared_ptr<Ogre::HardwareVertexBuffer> (empty) = {
get() = 0x0}, <No data fields>}, mGlobalInstanceVertexBufferVertexDeclaration = 0x0, mGlobalNumberOfInstances = 1, mEventNames = std::vector of length 1, capacity 1 = {
"RenderSystemCapabilitiesCreated"}, mEventListeners = empty std::__cxx11::list, mHwOcclusionQueries = empty std::__cxx11::list, mVertexProgramBound = true,
mGeometryProgramBound = false, mFragmentProgramBound = true, mTessellationHullProgramBound = false, mTessellationDomainProgramBound = false, mComputeProgramBound = false,
mClipPlanes = std::vector of length 0, capacity 0, mClipPlanesDirty = false, mRealCapabilities = 0xfe3740, mCurrentCapabilities = 0xfe3740, mUseCustomCapabilities = false,
mDriverVersion = {major = 4, minor = 6, release = 0, build = 0}, mNativeShadingLanguageVersion = 460, mTexProjRelative = false,
mTexProjRelativeOrigin = {<Ogre::VectorBase<3, float>> = {x = 0, y = 0, z = 1000}, <No data fields>}, mOptions = std::map with 10 elements = {["Debug Layer"] = {name = "Debug Layer",
currentValue = "Off", possibleValues = std::vector of length 2, capacity 2 = {"Off", "On"}, immutable = false}, ["Display Frequency"] = {name = "Display Frequency",
currentValue = "51 Hz", possibleValues = std::vector of length 1, capacity 2 = {"51 Hz"}, immutable = true}, ["FSAA"] = {name = "FSAA", currentValue = "0",
possibleValues = std::vector of length 5, capacity 5 = {"0", "16", "2", "4", "8"}, immutable = false}, ["Full Screen"] = {name = "Full Screen", currentValue = "Yes",
possibleValues = std::vector of length 2, capacity 2 = {"No", "Yes"}, immutable = false}, ["Reversed Z-Buffer"] = {name = "Reversed Z-Buffer", currentValue = "No",
possibleValues = std::vector of length 2, capacity 2 = {"No", "Yes"}, immutable = false}, ["Separate Shader Objects"] = {name = "Separate Shader Objects", currentValue = "Yes",
possibleValues = std::vector of length 2, capacity 2 = {"No", "Yes"}, immutable = false}, ["VSync"] = {name = "VSync", currentValue = "Yes",
possibleValues = std::vector of length 2, capacity 2 = {"No", "Yes"}, immutable = false}, ["VSync Interval"] = {name = "VSync Interval", currentValue = "1",
possibleValues = std::vector of length 4, capacity 4 = {"1", "2", "3", "4"}, immutable = false}, ["Video Mode"] = {name = "Video Mode", currentValue = "1920 x 1200",
possibleValues = std::vector of length 16, capacity 16 = {" 640 x 480", " 720 x 480", " 720 x 576", " 800 x 600", "1024 x 768", "1280 x 720", "1280 x 800", "1280 x 960",
"1280 x 1024", "1366 x 768", "1440 x 900", "1600 x 1200", "1680 x 1050", "1920 x 1080", "1920 x 1200", "3840 x 1200"}, immutable = false}, ["sRGB Gamma Conversion"] = {
name = "sRGB Gamma Conversion", currentValue = "No", possibleValues = std::vector of length 2, capacity 2 = {"No", "Yes"}, immutable = false}}, mCurrentBlend = {writeR = true,
writeG = true, writeB = true, writeA = true, sourceFactor = Ogre::SBF_SOURCE_ALPHA, destFactor = Ogre::SBF_ONE_MINUS_SOURCE_ALPHA, sourceFactorAlpha = Ogre::SBF_SOURCE_ALPHA,
destFactorAlpha = Ogre::SBF_ONE_MINUS_SOURCE_ALPHA, operation = Ogre::SBO_ADD, alphaOperation = Ogre::SBO_ADD},
mFixedFunctionParams = {<std::shared_ptr<Ogre::GpuProgramParameters>> = std::shared_ptr<Ogre::GpuProgramParameters> (empty) = {get() = 0x0}, <No data fields>}, mStencilState = {
compareOp = Ogre::CMPF_LESS_EQUAL, stencilFailOp = Ogre::SOP_KEEP, depthFailOp = Ogre::SOP_KEEP, depthStencilPassOp = Ogre::SOP_KEEP, referenceValue = 0, compareMask = 4294967295,
writeMask = 4294967295, enabled = false, twoSidedOperation = false}}, mMainContext = 0xdf4e60, mCurrentContext = 0xdf4e60, mGLSupport = 0xda2860,
mExtensionList = std::set with 385 elements = {[0] = "GL_AMD_multi_draw_indirect", [1] = "GL_AMD_seamless_cubemap_per_texture", [2] = "GL_AMD_vertex_shader_layer",
[3] = "GL_AMD_vertex_shader_viewport_index", [4] = "GL_ARB_ES2_compatibility", [5] = "GL_ARB_ES3_1_compatibility", [6] = "GL_ARB_ES3_2_compatibility",
[7] = "GL_ARB_ES3_compatibility", [8] = "GL_ARB_arrays_of_arrays", [9] = "GL_ARB_base_instance", [10] = "GL_ARB_bindless_texture", [11] = "GL_ARB_blend_func_extended",
[12] = "GL_ARB_buffer_storage", [13] = "GL_ARB_clear_buffer_object", [14] = "GL_ARB_clear_texture", [15] = "GL_ARB_clip_control", [16] = "GL_ARB_color_buffer_float",
[17] = "GL_ARB_compressed_texture_pixel_storage", [18] = "GL_ARB_compute_shader", [19] = "GL_ARB_compute_variable_group_size", [20] = "GL_ARB_conditional_render_inverted",
[21] = "GL_ARB_conservative_depth", [22] = "GL_ARB_copy_buffer", [23] = "GL_ARB_copy_image", [24] = "GL_ARB_cull_distance", [25] = "GL_ARB_debug_output",
[26] = "GL_ARB_depth_buffer_float", [27] = "GL_ARB_depth_clamp", [28] = "GL_ARB_depth_texture", [29] = "GL_ARB_derivative_control", [30] = "GL_ARB_direct_state_access",
[31] = "GL_ARB_draw_buffers", [32] = "GL_ARB_draw_buffers_blend", [33] = "GL_ARB_draw_elements_base_vertex", [34] = "GL_ARB_draw_indirect", [35] = "GL_ARB_draw_instanced",
[36] = "GL_ARB_enhanced_layouts", [37] = "GL_ARB_explicit_attrib_location", [38] = "GL_ARB_explicit_uniform_location", [39] = "GL_ARB_fragment_coord_conventions",
[40] = "GL_ARB_fragment_layer_viewport", [41] = "GL_ARB_fragment_program", [42] = "GL_ARB_fragment_program_shadow", [43] = "GL_ARB_fragment_shader",
[44] = "GL_ARB_fragment_shader_interlock", [45] = "GL_ARB_framebuffer_no_attachments", [46] = "GL_ARB_framebuffer_object", [47] = "GL_ARB_framebuffer_sRGB",
--Type <RET> for more, q to quit, c to continue without paging--
[48] = "GL_ARB_geometry_shader4", [49] = "GL_ARB_get_program_binary", [50] = "GL_ARB_get_texture_sub_image", [51] = "GL_ARB_gl_spirv", [52] = "GL_ARB_gpu_shader5",
[53] = "GL_ARB_gpu_shader_fp64", [54] = "GL_ARB_gpu_shader_int64", [55] = "GL_ARB_half_float_pixel", [56] = "GL_ARB_half_float_vertex", [57] = "GL_ARB_imaging",
[58] = "GL_ARB_indirect_parameters", [59] = "GL_ARB_instanced_arrays", [60] = "GL_ARB_internalformat_query", [61] = "GL_ARB_internalformat_query2",
[62] = "GL_ARB_invalidate_subdata", [63] = "GL_ARB_map_buffer_alignment", [64] = "GL_ARB_map_buffer_range", [65] = "GL_ARB_multi_bind", [66] = "GL_ARB_multi_draw_indirect",
[67] = "GL_ARB_multisample", [68] = "GL_ARB_multitexture", [69] = "GL_ARB_occlusion_query", [70] = "GL_ARB_occlusion_query2", [71] = "GL_ARB_parallel_shader_compile",
[72] = "GL_ARB_pipeline_statistics_query", [73] = "GL_ARB_pixel_buffer_object", [74] = "GL_ARB_point_parameters", [75] = "GL_ARB_point_sprite", [76] = "GL_ARB_polygon_offset_clamp",
[77] = "GL_ARB_post_depth_coverage", [78] = "GL_ARB_program_interface_query", [79] = "GL_ARB_provoking_vertex", [80] = "GL_ARB_query_buffer_object",
[81] = "GL_ARB_robust_buffer_access_behavior", [82] = "GL_ARB_robustness", [83] = "GL_ARB_sample_locations", [84] = "GL_ARB_sample_shading", [85] = "GL_ARB_sampler_objects",
[86] = "GL_ARB_seamless_cube_map", [87] = "GL_ARB_seamless_cubemap_per_texture", [88] = "GL_ARB_separate_shader_objects", [89] = "GL_ARB_shader_atomic_counter_ops",
[90] = "GL_ARB_shader_atomic_counters", [91] = "GL_ARB_shader_ballot", [92] = "GL_ARB_shader_bit_encoding", [93] = "GL_ARB_shader_clock", [94] = "GL_ARB_shader_draw_parameters",
[95] = "GL_ARB_shader_group_vote", [96] = "GL_ARB_shader_image_load_store", [97] = "GL_ARB_shader_image_size", [98] = "GL_ARB_shader_objects", [99] = "GL_ARB_shader_precision",
[100] = "GL_ARB_shader_storage_buffer_object", [101] = "GL_ARB_shader_subroutine", [102] = "GL_ARB_shader_texture_image_samples", [103] = "GL_ARB_shader_texture_lod",
[104] = "GL_ARB_shader_viewport_layer_array", [105] = "GL_ARB_shading_language_100", [106] = "GL_ARB_shading_language_420pack", [107] = "GL_ARB_shading_language_include",
[108] = "GL_ARB_shading_language_packing", [109] = "GL_ARB_shadow", [110] = "GL_ARB_sparse_buffer", [111] = "GL_ARB_sparse_texture", [112] = "GL_ARB_sparse_texture2",
[113] = "GL_ARB_sparse_texture_clamp", [114] = "GL_ARB_spirv_extensions", [115] = "GL_ARB_stencil_texturing", [116] = "GL_ARB_sync", [117] = "GL_ARB_tessellation_shader",
[118] = "GL_ARB_texture_barrier", [119] = "GL_ARB_texture_border_clamp", [120] = "GL_ARB_texture_buffer_object", [121] = "GL_ARB_texture_buffer_object_rgb32",
[122] = "GL_ARB_texture_buffer_range", [123] = "GL_ARB_texture_compression", [124] = "GL_ARB_texture_compression_bptc", [125] = "GL_ARB_texture_compression_rgtc",
[126] = "GL_ARB_texture_cube_map", [127] = "GL_ARB_texture_cube_map_array", [128] = "GL_ARB_texture_env_add", [129] = "GL_ARB_texture_env_combine",
[130] = "GL_ARB_texture_env_crossbar", [131] = "GL_ARB_texture_env_dot3", [132] = "GL_ARB_texture_filter_anisotropic", [133] = "GL_ARB_texture_filter_minmax",
[134] = "GL_ARB_texture_float", [135] = "GL_ARB_texture_gather", [136] = "GL_ARB_texture_mirror_clamp_to_edge", [137] = "GL_ARB_texture_mirrored_repeat",
[138] = "GL_ARB_texture_multisample", [139] = "GL_ARB_texture_non_power_of_two", [140] = "GL_ARB_texture_query_levels", [141] = "GL_ARB_texture_query_lod",
[142] = "GL_ARB_texture_rectangle", [143] = "GL_ARB_texture_rg", [144] = "GL_ARB_texture_rgb10_a2ui", [145] = "GL_ARB_texture_stencil8", [146] = "GL_ARB_texture_storage",
[147] = "GL_ARB_texture_storage_multisample", [148] = "GL_ARB_texture_swizzle", [149] = "GL_ARB_texture_view", [150] = "GL_ARB_timer_query", [151] = "GL_ARB_transform_feedback2",
[152] = "GL_ARB_transform_feedback3", [153] = "GL_ARB_transform_feedback_instanced", [154] = "GL_ARB_transform_feedback_overflow_query", [155] = "GL_ARB_transpose_matrix",
[156] = "GL_ARB_uniform_buffer_object", [157] = "GL_ARB_vertex_array_bgra", [158] = "GL_ARB_vertex_array_object", [159] = "GL_ARB_vertex_attrib_64bit",
[160] = "GL_ARB_vertex_attrib_binding", [161] = "GL_ARB_vertex_buffer_object", [162] = "GL_ARB_vertex_program", [163] = "GL_ARB_vertex_shader",
[164] = "GL_ARB_vertex_type_10f_11f_11f_rev", [165] = "GL_ARB_vertex_type_2_10_10_10_rev", [166] = "GL_ARB_viewport_array", [167] = "GL_ARB_window_pos",
[168] = "GL_ATI_draw_buffers", [169] = "GL_ATI_texture_float", [170] = "GL_ATI_texture_mirror_once", [171] = "GL_EXTX_framebuffer_mixed_formats", [172] = "GL_EXT_Cg_shader",
[173] = "GL_EXT_EGL_image_storage", [174] = "GL_EXT_abgr", [175] = "GL_EXT_bgra", [176] = "GL_EXT_bindable_uniform", [177] = "GL_EXT_blend_color",
[178] = "GL_EXT_blend_equation_separate", [179] = "GL_EXT_blend_func_separate", [180] = "GL_EXT_blend_minmax", [181] = "GL_EXT_blend_subtract",
[182] = "GL_EXT_compiled_vertex_array", [183] = "GL_EXT_depth_bounds_test", [184] = "GL_EXT_direct_state_access", [185] = "GL_EXT_draw_buffers2", [186] = "GL_EXT_draw_instanced",
[187] = "GL_EXT_draw_range_elements", [188] = "GL_EXT_fog_coord", [189] = "GL_EXT_framebuffer_blit", [190] = "GL_EXT_framebuffer_multisample",
[191] = "GL_EXT_framebuffer_multisample_blit_scaled", [192] = "GL_EXT_framebuffer_object", [193] = "GL_EXT_framebuffer_sRGB", [194] = "GL_EXT_geometry_shader4",
[195] = "GL_EXT_gpu_program_parameters", [196] = "GL_EXT_gpu_shader4", [197] = "GL_EXT_import_sync_object", [198] = "GL_EXT_memory_object", [199] = "GL_EXT_memory_object_fd"...},
mVendor = Ogre::GPU_NVIDIA, mRTTManager = 0xfe6430, mBackgroundContextList = empty std::__cxx11::list}, mMinFilter = Ogre::FO_LINEAR, mMipFilter = Ogre::FO_POINT, mTextureTypes = {
3553, 3553, 3553, 3553, 0 <repeats 12 times>}, mLargestSupportedAnisotropy = 16, mDepthWrite = false, mStencilWriteMask = 4294967295, mStateCacheManager = 0xfe34c0,
mProgramManager = 0xde6620, mGLSLShaderFactory = 0xfe6350, mSPIRVShaderFactory = 0xfe63c0, mHardwareBufferManager = 0xdd7d70, mActiveTextureUnit = 0,
mActiveBufferMap = std::unordered_map with 0 elements, mGLInitialised = true, mSeparateShaderObjectsEnabled = true, mCurrentShader = {_M_elems = {0x1a5f960, 0x1abac10, 0x0, 0x0, 0x0,
0x0}}}